New submission from Jussi Judin :
uu.decode() function can leak the internal binascii.Error exception from
binascii.a2b_uu() function call instead of the documented uu.Error exception.
Following code demonstrates the issue:
>>> import uu
>>> with open("in.uu", &
Jussi Judin added the comment:
Apparently base64.b32decode() also has another issue that I missed when going
through the issues with base64 module:
>>> import base64
>>> base64.b32decode(b"M===")
Traceback (most recent call last):
New submission from Jussi Judin :
base64.b32decode() function leads into "UnboundLocalError: local variable 'acc'
referenced before assignment" when passing 8 equality signs as data:
>>> import base64
>>> base64.b32decode(b"")
Tracebac
New submission from Jussi Judin :
sndhdr.what() function throws several types of exceptions on unknown files
instead of returning None (as documentation says).
Following code can replicate these crashes:
```
import sndhdr
import sys
sndhdr.what(sys.argv[1])
```
First crash is from wave or
New submission from Jussi Judin:
I managed to create a tarball that brought out quite nasty behavior with
tarfile.TarFile.extract() and tarfile.TarFile.extractall() functions when there
are hard links inside a tarball that point to themselves with a file that is
included in the tarball. In