]> granicus.if.org Git - python/commit
Issue #12839: Fix crash in zlib module due to version mismatch.
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 28 Aug 2011 09:26:46 +0000 (11:26 +0200)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 28 Aug 2011 09:26:46 +0000 (11:26 +0200)
commit97d67924e3a3ac1bbe07d6abc02c233a330013f1
tree0b4a9ccea44ce886d91b60ae5cc26dfe41745b97
parent0c97e5f36aa59e0221b9d279dfea83ff6f7936c0
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