[Boost-bugs] [Boost C++ Libraries] #5898: bzip2_decompressor still does not handle pbzip2-compressed files correctly

Subject: [Boost-bugs] [Boost C++ Libraries] #5898: bzip2_decompressor still does not handle pbzip2-compressed files correctly
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-14 00:39:58


#5898: bzip2_decompressor still does not handle pbzip2-compressed files correctly
-----------------------------------------+----------------------------------
 Reporter: Andrew.Bromage@… | Owner: turkanis
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: iostreams
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: |
-----------------------------------------+----------------------------------
 This is an extension of ticket #3853. I believe that the bug was not
 resolved correctly. In particular, there appears to be a subtle problem
 which occurs when the boundary between two bz streams falls at precisely
 the wrong place in the input buffer.

 The attached piece of code illustrates the problem. It may be
 compiled with, say:

     g++ testpbzip2.cc -o testpbzip2 -lboost_iostreams -lbz2
     ./testpbzip2

 The input file (which is inlined in the source file) was created
 using the following commands:

 dd if=/dev/zero of=file bs=1000 count=901
 pbzip2 -9 file

 The problem was initially found on a real file with the default
 buffer size of 4096. The smallest example that I've found which
 exercises the problem at this buffer size is 160kB, and hence
 not attached to this ticket. It is available on request.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5898>
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:07 UTC