Author Barro
Recipients Barro
Date 2018-07-20.09:21:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1532078469.74.0.56676864532.issue34164@psf.upfronthosting.co.za>
In-reply-to
Content
base64.b32decode() function leads into "UnboundLocalError: local variable 'acc' referenced before assignment" when passing 8 equality signs as data:

>>> import base64
>>> base64.b32decode(b"========")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/tmp/python-3.7-bin/lib/python3.7/base64.py", line 235, in b32decode
    acc <<= 5 * padchars
UnboundLocalError: local variable 'acc' referenced before assignment

When passing a different number of equality signs, the documented binascii.Error exception is thrown.
History
Date User Action Args
2018-07-20 09:21:09Barrosetrecipients: + Barro
2018-07-20 09:21:09Barrosetmessageid: <1532078469.74.0.56676864532.issue34164@psf.upfronthosting.co.za>
2018-07-20 09:21:09Barrolinkissue34164 messages
2018-07-20 09:21:09Barrocreate