From c460f64b50ad2cbb3186ca73a7ad0de50f0831f6 Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Wed, 31 Dec 2008 19:57:15 -0500 Subject: [PATCH] The code to support concatenated gzip streams is broken and it breaks some non-concatenated streams. So just disable this by always marking EOF immediately when we hit the end of a gzip stream. SVN-Revision: 352 --- libarchive/archive_read_support_compression_gzip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libarchive/archive_read_support_compression_gzip.c b/libarchive/archive_read_support_compression_gzip.c index c99adf48d..02538f41b 100644 --- a/libarchive/archive_read_support_compression_gzip.c +++ b/libarchive/archive_read_support_compression_gzip.c @@ -432,6 +432,7 @@ gzip_source_read(struct archive_read_source *self, const void **p) } /* Restart header parser with the next block. */ state->header_state = state->header_done = 0; + state->eof = 1; /* FALL THROUGH */ case Z_OK: /* Decompressor made some progress. */ /* If we filled our buffer, update stats and return. */ -- 2.47.3