]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Merge r1093 from trunk: Correctly account for
authorTim Kientzle <kientzle@gmail.com>
Mon, 25 May 2009 05:02:50 +0000 (01:02 -0400)
committerTim Kientzle <kientzle@gmail.com>
Mon, 25 May 2009 05:02:50 +0000 (01:02 -0400)
"extra data" field when reading gzip headers.
In particular, this fixes reading gzip files that
have been signed with the OpenBSD "gzsig" program.

SVN-Revision: 1104

libarchive/archive_read_support_compression_gzip.c

index 2222478935637c8a42a06221d208e6abac04dcf9..cd21c61293b9a8b14e4bb4494bf25a5f60fb03dd 100644 (file)
@@ -148,6 +148,7 @@ peek_at_header(struct archive_read_filter *filter, int *pbits)
                if (p == NULL)
                        return (0);
                len += ((int)p[len + 1] << 8) | (int)p[len];
+               len += 2;
        }
 
        /* Null-terminated optional filename. */