]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 24 Jul 2018 10:53:39 +0000 (03:53 -0700)
committerSerhiy Storchaka <storchaka@gmail.com>
Tue, 24 Jul 2018 10:53:39 +0000 (13:53 +0300)
commit0b2716918345b2bff0bb5c36086d5de368125536
tree0b5d8563abf3437c5da53b57e8a42ed71524027b
parent220afffb683af1ba9e04c37535cfaa41348e9ebb
bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH-8435)

Now base64.Error is always raised instead of UnboundLocalError or
OverflowError.
(cherry picked from commit ac0b3c2f4d86fc056b833a4e6b9a380741244a63)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/base64.py
Lib/test/test_base64.py
Misc/NEWS.d/next/Library/2018-07-20-18-06-00.bpo-34164.fNfT-q.rst [new file with mode: 0644]