]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320)
authorYoufu Zhang <1315097+zhangyoufu@users.noreply.github.com>
Tue, 7 May 2024 09:18:45 +0000 (17:18 +0800)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 09:18:45 +0000 (11:18 +0200)
commitfe47d9bee319528ffeb5fd60a615d7f02c7b5585
tree3f4b3040b7899cb86a994ba098f3f63b9f53d34a
parent3a6ff1b1d959549546f533b18ec71aa21516328d
gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320)

Fix an edge case in `binascii.a2b_base64` strict mode, where
excessive padding was not detected when no padding is necessary.

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Co-authored-by: Pieter Eendebak <pieter.eendebak@gmail.com>
Lib/test/test_binascii.py
Misc/NEWS.d/next/Library/2024-04-26-12-42-29.gh-issue-118314.Z7reGc.rst [new file with mode: 0644]
Modules/binascii.c