summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-07-24 09:52:51 (GMT)
committerGitHub <noreply@github.com>2018-07-24 09:52:51 (GMT)
commitac0b3c2f4d86fc056b833a4e6b9a380741244a63 (patch)
tree146851a1151628b64bae4ee7f867a78ccba692c9 /Misc
parent02ec92fa7b1dddc23d479ee0b87dc283793505a8 (diff)
downloadcpython-ac0b3c2f4d86fc056b833a4e6b9a380741244a63.zip
cpython-ac0b3c2f4d86fc056b833a4e6b9a380741244a63.tar.gz
cpython-ac0b3c2f4d86fc056b833a4e6b9a380741244a63.tar.bz2
bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351)
Now base64.Error is always raised instead of UnboundLocalError or OverflowError.
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2018-07-20-18-06-00.bpo-34164.fNfT-q.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-07-20-18-06-00.bpo-34164.fNfT-q.rst b/Misc/NEWS.d/next/Library/2018-07-20-18-06-00.bpo-34164.fNfT-q.rst
new file mode 100644
index 0000000..99bf169
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2018-07-20-18-06-00.bpo-34164.fNfT-q.rst
@@ -0,0 +1,2 @@
+:func:`base64.b32decode` could raise UnboundLocalError or OverflowError for
+incorrect padding. Now it always raises :exc:`base64.Error` in these cases.