Opened 6 years ago

#12326 new Bugs

boost::iostreams -- CRC error while decompressing certain gzip files

Reported by: joel.nordell@… Owned by: Jonathan Turkanis
Milestone: To Be Determined Component: iostreams
Version: Boost 1.61.0 Severity: Problem
Keywords: Cc:

Description

Given a gzip file that was written in multiple parts using Z_FULL_FLUSH, and one of those parts is empty (zero length), boost::iostreams::gzip_decompressor expects an incorrect CRC and fails.

See attached example file. The zcat utility decompresses this file just fine, but boost::iostreams::gzip_decompressor fails after "Line 6".

I have provided a test case and a fix for this issue, in a github pull request: https://github.com/boostorg/iostreams/pull/29

Attachments (1)

multipart.gz (146 bytes ) - added by joel.nordell@… 6 years ago.
example gzip file

Download all attachments as: .zip

Change History (1)

by joel.nordell@…, 6 years ago

Attachment: multipart.gz added

example gzip file

Note: See TracTickets for help on using tickets.