id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4216,Uninitialized memory read in iostreams,José Gomes ,Jonathan Turkanis,"The code below, that compresses an array of characters, seems to work in general but valgrind reports several uninitialized memory reads. array_source is used to abstract the array of characters. This minimal reproduction uses a std::vector to store the source data but the original application that this is reduced from does pass a char* and size as emulated here. This is using boost/1.36.0, boost/1.42.0, gcc/4.1.2, linux/2.6.18-53. {{{ #include #include #include #include #include #include int main() { using namespace boost::iostreams; std::vector input_buffer(1024), output_buffer; stream is(&input_buffer[0], input_buffer.size()); filtering_streambuf os; os.push(zlib_compressor()); os.push(back_inserter(output_buffer)); copy(is, os); } //g++ -g -Wall -I $BOOST_ROOT/include test_boos_zlib.cpp -L $BOOST_ROOT/lib -lboost_iostreams //valgrind ./a.out }}} ",Bugs,closed,Boost 1.43.0,iostreams,Boost 1.44.0,Problem,wontfix,,