]> git.ipfire.org Git - thirdparty/Python/cpython.git/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:24:37 +0000 (02:24 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 01:24:37 +0000 (02:24 +0100)
commit9ea64e38b5e1b947fef9e53e3f63994b79e264e7
treecf40e393504bdc1f39210dc1a7dcdb1aa2e1e59c
parent5fb7308318d3eeef89979c954592f226d5e7d825
parentdd1253abdd8564b095f24107547be0b8ce91e653
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.
Misc/NEWS
Modules/zlibmodule.c