[issue44678] Seperate error message for discontinuous padding in binascii.a2b_base64 strict mode

2021-07-19 Thread Idan Moral
New submission from Idan Moral : This is a follow-up PR to #24402. It should address @gpshead's last comment on the subject: https://github.com/python/cpython/pull/24402#issuecomment-882699002 Original issue: https://bugs.python.org/issue43086 Original PR: https://github.com/python/cp

[issue44678] Seperate error message for discontinuous padding in binascii.a2b_base64 strict mode

2021-07-19 Thread Idan Moral
Change by Idan Moral : -- type: -> enhancement ___ Python tracker <https://bugs.python.org/issue44678> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-07-19 Thread Idan Moral
Change by Idan Moral : -- pull_requests: +25796 pull_request: https://github.com/python/cpython/pull/27249 ___ Python tracker <https://bugs.python.org/issue43

[issue44678] Seperate error message for discontinuous padding in binascii.a2b_base64 strict mode

2021-07-19 Thread Idan Moral
Change by Idan Moral : -- keywords: +patch pull_requests: +25797 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27249 ___ Python tracker <https://bugs.python.org/issu

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-07-20 Thread Idan Moral
New submission from Idan Moral : This is a follow-up PR to GH-24402. Currently, *base64.b64decode* uses a generic regex to validate *s* (when *validate* is true), which sometimes results in unexpected behavior and exception messages. Example: (1)base64.b64decode('ab==', val

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-07-20 Thread Idan Moral
Change by Idan Moral : -- keywords: +patch pull_requests: +25817 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27272 ___ Python tracker <https://bugs.python.org/issu

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-01-31 Thread Idan Moral
New submission from Idan Moral : Currently, when providing binascii.a2b_base64() base-64 input with excess data after the padding ('='/'=='), the excess data is ignored. Example: import binascii binascii.a2b_base64(b'aGVsbG8=') # b'hello