id summary reporter owner description type status milestone component version severity resolution keywords cc 2882 infinite loop when attempting to close a filtered_stream with a zlib_decompressor when extra data is appended to the stream Jeremy Drake Jonathan Turkanis I ran into this while attempting to port over some code from using zlib directly. Apparently one of the compressed file formats contains a 4 byte length at the end of the zlib data. This causes zlib to return Z_STREAM_END with 4 bytes still left to write. This in turn causes an infinite loop in boost::iostreams::symmetric_filter::write, do to the fact that the return value of filter().filter is not checked. Bugs closed Boost 1.39.0 iostreams Boost 1.38.0 Problem fixed