Subject: Re: [Boost-bugs] [Boost C++ Libraries] #2783: bzip2_decompressor infinite loops with truncated input file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-06-05 20:55:41
#2783: bzip2_decompressor infinite loops with truncated input file
------------------------------------------------------+---------------------
Reporter: Mark Westcott <markboost_at_[hidden]> | Owner: turkanis
Type: Bugs | Status: closed
Milestone: | Component: iostreams
Version: Boost 1.38.0 | Severity: Problem
Resolution: invalid | Keywords:
------------------------------------------------------+---------------------
Comment(by markboost_at_[hidden]):
I disagree. (As does Jonathan Turkanis - http://lists.boost.org/boost-
users/2005/10/14362.php).
The correct behaviour is to throw an exception (probably
boost::iostreams::data_error) (like the gzip filter does) - infinite
looping with invalid input really isn't good. Just like bzip2 reports the
file is corrupt, so should this filter.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2783#comment:2> 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:00 UTC