[issue30564] Base64 decoding gives incorrect outputs.
Changes by Monty Evans : -- nosy: ShiftedBit priority: normal severity: normal status: open title: Base64 decoding gives incorrect outputs. type: behavior versions: Python 2.7, Python 3.5 ___ Python tracker <http://bugs.python.org/issue30564> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30564] Base64 decoding gives incorrect outputs.
New submission from Monty Evans: Tested in Python 2.7 and 3.5 - the base64 module contains a couple of decoding methods, 'standard_b64decode()' and 'b66decode()' which incorrectly decode certain invalid base64 strings. This is outlined in detail here: "https://stackoverflow.com/questions/44347819/python-3-5-base64-decoding-seems-to-be-incorrect";. I've checked with a few other developers, and they agree that there is an issue here. I can't see that the issue has been resolved on the bug tracker, so I've worked up an alternative version of "standard_b64decode()" which I'll upload, which ought to solve the issue. -- ___ Python tracker <http://bugs.python.org/issue30564> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30564] Base64 decoding gives incorrect outputs.
Changes by Monty Evans : Added file: http://bugs.python.org/file46923/b64_decoding.py ___ Python tracker <http://bugs.python.org/issue30564> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30564] Base64 decoding gives incorrect outputs.
Changes by Monty Evans : -- components: +Library (Lib) ___ Python tracker <http://bugs.python.org/issue30564> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30564] Base64 decoding gives incorrect outputs.
Monty Evans added the comment: Ah, that is enlightening. It hadn't occured to me that you might want to allow for minor mistakes in the encoder - I must've missed that part of the standard. Thanks to both of you for clearing that up :). -- ___ Python tracker <http://bugs.python.org/issue30564> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com