]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #12839: Fix crash in zlib module due to version mismatch.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 28 Aug 2011 09:23:57 +0000 (11:23 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 28 Aug 2011 09:23:57 +0000 (11:23 +0200)
commitbbabbae114f6d16dacdc1ad8f6f04b95fb6b17eb
tree56c42ad880558aab586acdd433ab6eb254470a7b
parent0ad7358c2f9e04c4d26271020cf31b41f6616c79
Issue #12839: Fix crash in zlib module due to version mismatch.

If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.

Fix by Richard M. Tew.
Misc/ACKS
Misc/NEWS
Modules/zlibmodule.c