]> granicus.if.org Git - python/commit
Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
authorGregory P. Smith <greg@mad-scientist.com>
Wed, 9 Apr 2008 00:25:17 +0000 (00:25 +0000)
committerGregory P. Smith <greg@mad-scientist.com>
Wed, 9 Apr 2008 00:25:17 +0000 (00:25 +0000)
commit79e42a0e0817b9c9fc23b333524427662b33986d
tree5e61bf69ea3291250f08e8616665d941345057d4
parente41b0061dd908251a393f77b030c9e7308ecd5c5
Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
It tried to allocate negative or zero memory.  That fails.
Lib/test/test_zlib.py
Modules/zlibmodule.c