Skip to content

[3.7] bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583)#7664

Merged
taleinat merged 1 commit into
python:3.7from
miss-islington:backport-c3f55be-3.7
Jun 12, 2018
Merged

[3.7] bpo-27397: Make email module properly handle invalid-length base64 strings (GH-7583)#7664
taleinat merged 1 commit into
python:3.7from
miss-islington:backport-c3f55be-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Jun 12, 2018

Copy link
Copy Markdown
Contributor

When attempting to base64-decode a payload of invalid length (1 mod 4),
properly recognize and handle it. The given data will be returned as-is,
i.e. not decoded, along with a new defect, InvalidBase64LengthDefect.
(cherry picked from commit c3f55be)

Co-authored-by: Tal Einat taleinat+github@gmail.com

https://bugs.python.org/issue27397

…rings (pythonGH-7583)

When attempting to base64-decode a payload of invalid length (1 mod 4),
properly recognize and handle it.  The given data will be returned as-is,
i.e. not decoded, along with a new defect, InvalidBase64LengthDefect.
(cherry picked from commit c3f55be)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@taleinat: Backport status check is done, and it's a success ✅ .

@taleinat taleinat merged commit 7b82281 into python:3.7 Jun 12, 2018
@miss-islington

Copy link
Copy Markdown
Contributor Author

Thanks, @taleinat!

@miss-islington miss-islington deleted the backport-c3f55be-3.7 branch June 12, 2018 13:46
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.

4 participants