From owner-cvs-all@FreeBSD.ORG Sat Oct 27 22:45:41 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 644DF16A41B; Sat, 27 Oct 2007 22:45:41 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5384613C48E; Sat, 27 Oct 2007 22:45:41 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9RMjeAV072965; Sat, 27 Oct 2007 22:45:40 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9RMje8c072964; Sat, 27 Oct 2007 22:45:40 GMT (envelope-from kientzle) Message-Id: <200710272245.l9RMje8c072964@repoman.freebsd.org> From: Tim Kientzle Date: Sat, 27 Oct 2007 22:45:40 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_read_support_compression_none.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Oct 2007 22:45:41 -0000 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