diff options
author | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-11-11 01:21:22 (GMT) |
---|---|---|
committer | Nadeem Vawda <nadeem.vawda@gmail.com> | 2012-11-11 01:21:22 (GMT) |
commit | dd1253abdd8564b095f24107547be0b8ce91e653 (patch) | |
tree | 7eee961bf90aa457337ca1f852667db346f06da8 /Misc | |
parent | 73e9bd4d259c3c213347e45d4bb5bf20fb51c7f4 (diff) | |
parent | ee7889dec321654d1c50448de7987e1841dd3ad5 (diff) | |
download | cpython-dd1253abdd8564b095f24107547be0b8ce91e653.zip cpython-dd1253abdd8564b095f24107547be0b8ce91e653.tar.gz cpython-dd1253abdd8564b095f24107547be0b8ce91e653.tar.bz2 |
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.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -91,9 +91,11 @@ Library - Issue #16431: Use the type information when constructing a Decimal subtype from a Decimal argument. -- Issue #16350: zlib.Decompress.decompress() now accumulates data from +- Issue #16350: zlib.decompressobj().decompress() now accumulates data from successive calls after EOF in unused_data, instead of only saving the argument - to the last call. Patch by Serhiy Storchaka. + to the last call. decompressobj().flush() now correctly sets unused_data and + unconsumed_tail. A bug in the handling of MemoryError when setting the + unconsumed_tail attribute has also been fixed. Patch by Serhiy Storchaka. - Issue #12759: sre_parse now raises a proper error when the name of the group is missing. Initial patch by Serhiy Storchaka. |