Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7810: zlib_error::check throws on Z_BUF_ERROR
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-22 18:43:39
#7810: zlib_error::check throws on Z_BUF_ERROR
-------------------------------------+--------------------------------------
Reporter: m.hekkelman@⦠| Owner: turkanis
Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
Version: Boost 1.52.0 | Severity: Problem
Resolution: | Keywords:
-------------------------------------+--------------------------------------
Comment (by m.hekkelman@â¦):
Although I do believe the iostreams zlib wrapper code might run into
problems, further investigation of my own code that triggered this report
revealed that the file I was testing was truncated... duh. My bad, should
have checked that first of course.
The problem here is the error code returned by zlib (Z_BUF_ERROR) which is
a bit ambiguous.
The way the code is written in iostreams zlib wrapper might still throw an
exception in a case where this is inappropriate. Working around this would
need a kind of rainy day fund approach where a temp buffer should be used
to expand remaining bytes in the zlib buffer.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7810#comment:1> 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:11 UTC