Skip to content

gh-145264: Do not ignore excess Base64 data after the first padded quad#145267

Open
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:base64-excess-data
Open

gh-145264: Do not ignore excess Base64 data after the first padded quad#145267
serhiy-storchaka wants to merge 2 commits intopython:mainfrom
serhiy-storchaka:base64-excess-data

Conversation

@serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 26, 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.

…ded quad

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant