cvs commit: src/lib/libarchive archive_read_support_compression_none.c

Tim Kientzle kientzle at
Sat Oct 27 15:45:41 PDT 2007

kientzle    2007-10-27 22:45:40 UTC

  FreeBSD src repository

  Modified files:
    lib/libarchive       archive_read_support_compression_none.c 
  When skipping input data, don't overflow a 32-bit size_t.
  This can only happen on 32-bit systems when you're reading
  an uncompressed archive and the skip request is an exact
  multiple of 4G (e.g., skipping a tar entry with an 8G body).
  The symptom is that the read_ahead() ends up returning zero
  bytes, and the extraction stops with a premature end-of-file.
  Using '1' here is more correct anyway, as it allows read_ahead()
  to function opportunistically and minimize copying.
  MFC after: 5 days
  Revision  Changes    Path
  1.18      +1 -1      src/lib/libarchive/archive_read_support_compression_none.c

More information about the cvs-src mailing list