[Zlib-devel] zlib 1.2.3.6 available for testing

Mark Adler madler at alumni.caltech.edu
Mon Jan 18 13:16:23 EST 2010


On Jan 18, 2010, at 8:06 AM, Török Edwin wrote:
> This doesn't mention that it can fail due to zlib version mismatch

Actually that can't happen in the gz* functions, since they are already compiled, using the original library header file.  A version mismatch can occur only if a compiled library is used with a zlib.h file with a different version, which there is only detected for the Init functions.

> There may be more functions where Z_VERSION_ERROR is missing from the docs.

Only deflateInit, deflateInit2, inflateInit, inflateInit2, and inflateBackInit can return Z_VERSION_ERROR.  In fact, for some reason zlib.h failed to mention this for deflateInit2, so that has been fixed.

Mark





More information about the Zlib-devel mailing list