Skip to content

[3.13] gh-145264: Do not ignore excess Base64 data after the first padded quad (GH-145267) (GH-146326)#146348

Merged
ambv merged 1 commit intopython:3.13from
miss-islington:backport-e31c551-3.13
Mar 23, 2026
Merged

[3.13] gh-145264: Do not ignore excess Base64 data after the first padded quad (GH-145267) (GH-146326)#146348
ambv merged 1 commit intopython:3.13from
miss-islington:backport-e31c551-3.13

Conversation

@miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Mar 23, 2026

Base64 decoder (see binascii.a2b_base64(), base64.b64decode(), etc)
no longer ignores excess data after the first padded quad in non-strict
(default) mode. Instead, in conformance with RFC 4648, it ignores the
pad character, "=", if it is present before the end of the encoded data.
(cherry picked from commit 4561f64)
(cherry picked from commit e31c551)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com

…rst padded quad (pythonGH-145267) (pythonGH-146326)

Base64 decoder (see binascii.a2b_base64(), base64.b64decode(), etc)
no longer ignores excess data after the first padded quad in non-strict
(default) mode.  Instead, in conformance with RFC 4648, it ignores the
pad character, "=", if it is present before the end of the encoded data.
(cherry picked from commit 4561f64)
(cherry picked from commit e31c551)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@ambv ambv merged commit 1f9958f into python:3.13 Mar 23, 2026
43 checks passed
@miss-islington miss-islington deleted the backport-e31c551-3.13 branch March 23, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants