[Boost-bugs] [Boost C++ Libraries] #12326: boost::iostreams -- CRC error while decompressing certain gzip files

Subject: [Boost-bugs] [Boost C++ Libraries] #12326: boost::iostreams -- CRC error while decompressing certain gzip files
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-07-13 14:08:38


#12326: boost::iostreams -- CRC error while decompressing certain gzip files
------------------------------+-----------------------
 Reporter: joel.nordell@… | Owner: turkanis
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
  Version: Boost 1.61.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 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

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12326>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC