summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorJack DeVries <58614260+jdevries3133@users.noreply.github.com>2021-09-29 09:25:48 (GMT)
committerGitHub <noreply@github.com>2021-09-29 09:25:48 (GMT)
commitb6fe8572509b77d2002eaddf99d718e9b4835684 (patch)
treee99950e2ca2dc6a94a78625d669e4d466a923068 /Misc
parent233b9da07d15f19c11e483e7ef7e3c73422e03f9 (diff)
downloadcpython-b6fe8572509b77d2002eaddf99d718e9b4835684.zip
cpython-b6fe8572509b77d2002eaddf99d718e9b4835684.tar.gz
cpython-b6fe8572509b77d2002eaddf99d718e9b4835684.tar.bz2
bpo-39039: tarfile raises descriptive exception from zlib.error (GH-27766)
* during tarfile parsing, a zlib error indicates invalid data * tarfile.open now raises a descriptive exception from the zlib error * this makes it clear to the user that they may be trying to open a corrupted tar file
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2021-08-18-10-36-14.bpo-39039.A63LYh.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2021-08-18-10-36-14.bpo-39039.A63LYh.rst b/Misc/NEWS.d/next/Library/2021-08-18-10-36-14.bpo-39039.A63LYh.rst
new file mode 100644
index 0000000..7250055
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2021-08-18-10-36-14.bpo-39039.A63LYh.rst
@@ -0,0 +1,2 @@
+tarfile.open raises :exc:`~tarfile.ReadError` when a zlib error occurs
+during file extraction.