[Boost-bugs] [Boost C++ Libraries] #2783: bzip2_decompressor infinite loops with truncated input file

Subject: [Boost-bugs] [Boost C++ Libraries] #2783: bzip2_decompressor infinite loops with truncated input file
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-20 09:42:29


#2783: bzip2_decompressor infinite loops with truncated input file
-----------------------------------------------------+----------------------
 Reporter: Mark Westcott <markboost_at_[hidden]> | Owner: turkanis
     Type: Bugs | Status: new
Milestone: | Component: iostreams
  Version: Boost 1.38.0 | Severity: Problem
 Keywords: |
-----------------------------------------------------+----------------------
 Hi.
 This is a re-report of a problem posted to boost-users in 2005,
 http://lists.boost.org/boost-users/2005/10/14361.php

 I have attached the sample program from that post.

 To reproduce:

 {{{

 echo -e "Hello world\n" | bzip2 > hello-complete.bz2
 dd if=hello-complete.bz2 of=hello.bz2 bs=1 count=53
 ./hello
 }}}

 The program never terminates.

 This behaviour is exhibited with both gcc 4.3 and VC8 using latest boost
 release.

 TIA.

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