#1372 Incorrect handling of gzips with multiple members

open
nobody
None
5
2013-08-26
2013-08-26
Brent Scriver
No

My understanding of the gzip specification (http://www.ietf.org/rfc/rfc1952.txt) is multiple files can be encoded sequentially in the file one after the other.

When I do this and open the .gz file in 7zip, the result is odd: it lists only the first file. Decompression decompresses all of the data together separated by a bit of garbage (a few extra 0x0A bytes).

The sample gzip file has two members, rfc1952.txt and rfc1953.txt (retrieved from the above location).

1 Attachments

Discussion

  • Brent Scriver
    Brent Scriver
    2013-08-26

    A little more information: The test.gz file was created using the zlib library a pass for each file calling deflateInit2, deflateSetHeader, deflate, and deflateEnd.

     
  • Igor Pavlov
    Igor Pavlov
    2013-08-26

    1) When you open archive, 7-zip doesn't know that there are more than one parts.
    2) When you decompress that gz file, it must decompress correctly.

     
  • Igor Pavlov
    Igor Pavlov
    2013-08-26

    How did you create that archive?
    Please describe in details.

     
  • Brent Scriver
    Brent Scriver
    2013-08-26

    I hacked some quick code to together to try it out on Windows using the zlib library (can't recall which version).

     
    Attachments