]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 7 May 2024 09:35:49 +0000 (11:35 +0200)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 09:35:49 +0000 (09:35 +0000)
commit56c61cc564eb1d990903cb28a8178674774add2e
treef4454f5f5e927e0a977cae4273e14167891117d3
parent7b25d945e054bab81215fc2f48fc5c91bc33c412
[3.12] gh-118314: Fix padding edge case in binascii.a2b_base64 strict mode (GH-118320) (GH-118691)

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.

(cherry picked from commit fe47d9bee319528ffeb5fd60a615d7f02c7b5585)

Co-authored-by: Youfu Zhang <1315097+zhangyoufu@users.noreply.github.com>
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