commit | 7b82281c80d0064559866afe92f19cae5978c841 | [log] [tgz] |
---|---|---|
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | Tue Jun 12 06:46:11 2018 -0700 |
committer | Tal Einat <taleinat+github@gmail.com> | Tue Jun 12 16:46:11 2018 +0300 |
tree | 4f78f92d0667944be27d755cfb6a3272774575f8 | |
parent | 66cea5cb1be7976fb5e63887e5c357011f2bd131 [diff] |
bpo-27397: Make email module properly handle invalid-length base64 strings (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 c3f55be7dd012b7e92901627d0b31c21e983ccb4) Co-authored-by: Tal Einat <taleinat+github@gmail.com>