On Sat, Oct 01, 2005 at 02:59:04PM -0400, Justin Pryzby wrote: > I want to write a compressed file only if the given extension is > ".gz", so I do the appropriate string comparison. gzopen(fn, "wb") > works, writing a compressed file as expected, but gzopen(fn, "wb0") > gives many valgrind errors about "Conditional jump or move depends on > uninitialised value(s)". Maybe this is not the correct way to write
The valgrind warnings with compression enabled all appear to be expected ones due to loop unrolling in longest_match. The warnings from running with compression disabled appear to be similar warnings in a different place with a similar comment explaining that the results of the operation will be discarded. Both cases are things that valgrind is flagging up the sort of potentially buggy operations it's supposed to but which can be safely performed with appropriate additional checks on what's going on. > Otherwise this bug is that "wb0" fails. What makes you say this? As far as I am able to tell your test program runs to completion without error, writing out a gzip format file which appears to have the required contents. The only problem you have mentioned is the warnings from valgrind. -- "You grabbed my hand and we fell into it, like a daydream - or a fever." -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

