]> 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:21:22 +0000 (02:21 +0100)
committerNadeem Vawda <nadeem.vawda@gmail.com>
Sun, 11 Nov 2012 01:21:22 +0000 (02:21 +0100)
commitdd1253abdd8564b095f24107547be0b8ce91e653
tree7eee961bf90aa457337ca1f852667db346f06da8
parent73e9bd4d259c3c213347e45d4bb5bf20fb51c7f4
parentee7889dec321654d1c50448de7987e1841dd3ad5
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