mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
bpo-39055: Reject a trailing \n in base64.b64decode() with validate=True. (GH-17616)
This commit is contained in:
parent
41ec17e45d
commit
b19c0d77e6
3 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue