summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorNadeem Vawda <nadeem.vawda@gmail.com>2012-11-11 01:24:37 (GMT)
committerNadeem Vawda <nadeem.vawda@gmail.com>2012-11-11 01:24:37 (GMT)
commit9ea64e38b5e1b947fef9e53e3f63994b79e264e7 (patch)
treecf40e393504bdc1f39210dc1a7dcdb1aa2e1e59c /Misc
parent5fb7308318d3eeef89979c954592f226d5e7d825 (diff)
parentdd1253abdd8564b095f24107547be0b8ce91e653 (diff)
downloadcpython-9ea64e38b5e1b947fef9e53e3f63994b79e264e7.zip
cpython-9ea64e38b5e1b947fef9e53e3f63994b79e264e7.tar.gz
cpython-9ea64e38b5e1b947fef9e53e3f63994b79e264e7.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/NEWS6
1 files changed, 4 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 6b08b09..2c80158 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -127,9 +127,11 @@ Library
- Issue #15641: Clean up deprecated classes from importlib
Patch by Taras Lyapun.
-- 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.