]> 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:36 +0000 (02:14 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 01:14:36 +0000 (02:14 +0100)
commitee7889dec321654d1c50448de7987e1841dd3ad5
tree040b7cdbf15885df6cfada7a6fb85cb8ddf845ac
parent5c89b4ec55bc7ebe799da296e01544a5bcdc4250
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