Opened 6 years ago
#12326 new Bugs
boost::iostreams -- CRC error while decompressing certain gzip files
Reported by: | 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)
Note:
See TracTickets
for help on using tickets.
example gzip file