[iostreams] problem with bzip2_decompressor and incomplete files
Hello.
I've been experiencing a problem with the bzip2_decompressor filter when
reading from a stream attached to an incomplete file. Instead of
throwing an exception or reaching EOF, the program just hangs.
Consider the following example code (hello.cc) taken from the documentation:
-----------------------------------------------------------
#include <fstream>
#include <iostream>
#include
Tiago de Paula Peixoto wrote:
Hello.
I've been experiencing a problem with the bzip2_decompressor filter when reading from a stream attached to an incomplete file. Instead of throwing an exception or reaching EOF, the program just hangs.
It just hangs in an infinite loop, instead of throwing an exception or reaching EOF. In the same situation, gzip_decompressor throws an exception... Is there a reason for this not happening in this case, or is this just a bug?
It's a bug. Thanks for reporting it.
Thanks for any help. -- Tiago de Paula Peixoto
-- Jonathan Turkanis www.kangaroologic.com
participants (2)
-
Jonathan Turkanis
-
Tiago de Paula Peixoto