diff options
author | Oren Milman <orenmn@gmail.com> | 2017-09-29 18:34:31 (GMT) |
---|---|---|
committer | Brett Cannon <brettcannon@users.noreply.github.com> | 2017-09-29 18:34:31 (GMT) |
commit | 01c6a8859ef2ff5545a87cf537573bd342c848bf (patch) | |
tree | 67a72ecdad511b4890802ea8c12494f2e3888a58 /Misc | |
parent | 66033733aa032707b57cf1b0e8d5a1c5e4afceb9 (diff) | |
download | cpython-01c6a8859ef2ff5545a87cf537573bd342c848bf.zip cpython-01c6a8859ef2ff5545a87cf537573bd342c848bf.tar.gz cpython-01c6a8859ef2ff5545a87cf537573bd342c848bf.tar.bz2 |
bpo-31602: Fix an assertion failure in zipimporter.get_source() in case of a bad zlib.decompress() (GH-3784)
While a rare potential failure (it requires swapping out zlib.decompress() itself and forcing it to return a non-bytes object), this change prevents a potential C-level assertion failure and instead substitutes it with an exception.
Thanks to Oren Milman for the patch.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2017-09-27-09-30-03.bpo-31602.MtgLCn.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2017-09-27-09-30-03.bpo-31602.MtgLCn.rst b/Misc/NEWS.d/next/Core and Builtins/2017-09-27-09-30-03.bpo-31602.MtgLCn.rst new file mode 100644 index 0000000..3a63209 --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2017-09-27-09-30-03.bpo-31602.MtgLCn.rst @@ -0,0 +1,2 @@ +Fix an assertion failure in `zipimporter.get_source()` in case of a bad +`zlib.decompress()`. Patch by Oren Milman. |