Date: Sat, 27 Oct 2007 22:45:40 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libarchive archive_read_support_compression_none.c Message-ID: <200710272245.l9RMje8c072964@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
kientzle 2007-10-27 22:45:40 UTC
FreeBSD src repository
Modified files:
lib/libarchive archive_read_support_compression_none.c
Log:
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710272245.l9RMje8c072964>
