GZIP + access and modify extra field usage

2008-02-10 Thread yperl
Hi list, I'd like to use the "EXTRA FIELD" feature of GZIP specification to store in the GZIP header itself, the size of both the "compressed" and the "uncompressed" data. The only theoritical unfinished solution I come up with is to: 1) compute the actual uncompressed file size 2) compress th

GZIP compression + valgrind error

2008-02-18 Thread yperl
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==