Hi List, When trying to compress something with level "Z_NO_COMPRESSION",Valgrind indicates that GZIP is trying to access an unitialized memory in "deflate.c" :
==2727== Conditional jump or move depends on uninitialised value(s) ==2727== at 0x804BA85: fill_window (deflate.c:1325) ==2727== by 0x804BBBD: deflate_stored (deflate.c:1418) ==2727== by 0x804ACCF: deflate (deflate.c:791)When using other compression levels (Z_DEFAULT_COMPRESSION, Z_BEST_SPEED, Z_BEST_COMPRESSION), everything seems to be OK to Valgrind.
Please, find attached my "deflate.c" and "snippet.c". Any advice ? cheers Younès
gzip_valgrind.tar.gz
Description: application/gunzip