]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
The code to support concatenated gzip streams is broken and
authorTim Kientzle <kientzle@gmail.com>
Thu, 1 Jan 2009 00:57:15 +0000 (19:57 -0500)
committerTim Kientzle <kientzle@gmail.com>
Thu, 1 Jan 2009 00:57:15 +0000 (19:57 -0500)
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

index c99adf48dfa406abfd810f1ccd550819aefe128a..02538f41b5ea90b2c7d2c31fe3a1b7d5dfaa6a58 100644 (file)
@@ -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. */