From owner-svn-src-head@FreeBSD.ORG Sat May 23 04:31:06 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 13759106566B; Sat, 23 May 2009 04:31:06 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 015E18FC0C; Sat, 23 May 2009 04:31:06 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4N4V5tg029195; Sat, 23 May 2009 04:31:05 GMT (envelope-from kientzle@svn.freebsd.org) Received: (from kientzle@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4N4V5td029194; Sat, 23 May 2009 04:31:05 GMT (envelope-from kientzle@svn.freebsd.org) Message-Id: <200905230431.n4N4V5td029194@svn.freebsd.org> From: Tim Kientzle Date: Sat, 23 May 2009 04:31:05 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r192623 - head/lib/libarchive X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 May 2009 04:31:06 -0000 Author: kientzle Date: Sat May 23 04:31:05 2009 New Revision: 192623 URL: http://svn.freebsd.org/changeset/base/192623 Log: Include the 2 byte length field for the optional "extra data" field when computing the length of the gzip header. Thanks to Dag-Erling for pointing me to the OpenSSH tarballs, which are the first files I've seen that actually used this field. Modified: head/lib/libarchive/archive_read_support_compression_gzip.c Modified: head/lib/libarchive/archive_read_support_compression_gzip.c ============================================================================== --- head/lib/libarchive/archive_read_support_compression_gzip.c Sat May 23 03:35:29 2009 (r192622) +++ head/lib/libarchive/archive_read_support_compression_gzip.c Sat May 23 04:31:05 2009 (r192623) @@ -148,6 +148,7 @@ peek_at_header(struct archive_read_filte if (p == NULL) return (0); len += ((int)p[len + 1] << 8) | (int)p[len]; + len += 2; } /* Null-terminated optional filename. */