bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)

This commit is contained in:
Serhiy Storchaka 2020-01-05 14:15:50 +02:00 committed by GitHub
parent 41ec17e45d
commit b19c0d77e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View file

@ -250,6 +250,7 @@ class BaseXYTestCase(unittest.TestCase):
(b'3d}==', b'\xdd'),
(b'@@', b''),
(b'!', b''),
(b"YWJj\n", b"abc"),
(b'YWJj\nYWI=', b'abcab'))
funcs = (
base64.b64decode,