[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive
STINNER Victor
report at bugs.python.org
Tue Oct 27 16:47:25 EDT 2020
STINNER Victor <vstinner at python.org> added the comment:
> functions who's point is to be fast and not consume an amount of memory determined by the input data
I proposed to read the first 4 bytes of the file. It's a fixed length.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42096>
_______________________________________
More information about the Python-bugs-list
mailing list