[Zlib-devel] ABI change in zlib 1.2.4

Xin LI delphij at gmail.com
Wed Mar 17 14:35:42 EDT 2010


Hi,

I have ran into a problem that some third party software blindly cast
gzFile into z_stream_s * (specifically, libxml2).  This used to work
but is now broken with zlib 1.2.4 since z_stream_s is located at the
bottom of the struct gzstate.

I am thinking about making a bug-for-bug change for FreeBSD as
attached.  Will this look bad for anyone?  Can we make it in next zlib
release?

Cheers,
-- 
Xin LI <delphij at delphij.net> http://www.delphij.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gzguts.diff
Type: application/octet-stream
Size: 727 bytes
Desc: not available
URL: <http://madler.net/pipermail/zlib-devel_madler.net/attachments/20100317/a33a52eb/attachment.obj>


More information about the Zlib-devel mailing list