]> granicus.if.org Git - python/commit
[3.6] bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351...
authorSerhiy Storchaka <storchaka@gmail.com>
Tue, 24 Jul 2018 12:06:59 +0000 (15:06 +0300)
committerGitHub <noreply@github.com>
Tue, 24 Jul 2018 12:06:59 +0000 (15:06 +0300)
commit113f86e7487e9312a2494667b088854ac942ab00
tree2b65ef3ad53c83cb890032d3906386dfe8e6851f
parent9b33ca0f4d459c165d711778734b6e1bdc3ec35d
[3.6] bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH-8436)

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]