]> granicus.if.org Git - python/commit
Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressob...
authorNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 01:14:15 +0000 (02:14 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 01:14:15 +0000 (02:14 +0100)
commit252f4dc6c9a418f83749bbfe76b672c800e6a08b
tree204af26c5b1c4f1e016659f1090d27cb3108691c
parent67f089f8607167859e0cc28eb1865917df75fc63
Issue #16350, part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().

Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).

Patch by Serhiy Storchaka.
Lib/test/test_zlib.py
Misc/NEWS
Modules/zlibmodule.c