[proxy] github.com← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

bpo-27397: Make email module properly handle invalid-length base64 strings by taleinat · Pull Request #7583 · python/cpython

taleinat

added 3 commits

June 10, 2018 09:17
This defines a new InvalidBase64LengthDefect defect, which is returned
with the encoded string when attempting to base64-decode a string
of invalid length (1 mod 4).

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request

Jun 12, 2018

…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 pushed a commit to miss-islington/cpython that referenced this pull request

Jun 12, 2018
…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>

taleinat added a commit that referenced this pull request

Jun 12, 2018
…rings (GH-7583) (GH-7664)

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>

taleinat added a commit that referenced this pull request

Jun 12, 2018
…rings (GH-7583) (GH-7665)

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>