Re: [xml] gzdirect() doesn't work in zlib 184.108.40.206 (at least) (was Re: libxml violates the zlib interface and crashes)
- From: Mark Adler <madler alumni caltech edu>
- To: Nix <nix esperi org uk>
- Cc: xml gnome org, Mark Brown <broonie sirena org uk>, veillard redhat com
- Subject: Re: [xml] gzdirect() doesn't work in zlib 220.127.116.11 (at least) (was Re: libxml violates the zlib interface and crashes)
- Date: Fri, 22 Jan 2010 14:26:12 -0800
On Jan 22, 2010, at 9:54 AM, Nix wrote:
These results are inverted, so in 18.104.22.168, gzdirect() returns 0 even
when the input source file is not compressed at all. Oops?
Yes, oops. This was already known. The testing for now should be against the production version, 22.214.171.124,
as Daniel has already done. My next internal beta, 126.96.36.199, has the new gzdirect() fixed. (188.8.131.52 and
beyond include a wholesale replacement of the gz* functions.)
The problem was that gzdirect() only reported correctly after you start reading the file (e.g. after a
gzread()), which doesn't happen when you just do a gzopen(). gzdirect() now forces a file read when it
immediately follows a gzopen() in order to determine if it's a gzip file or not.
] [Thread Prev