[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive
Brian Kohan
report at bugs.python.org
Thu Oct 22 13:33:31 EDT 2020
Brian Kohan <bckohan at gmail.com> added the comment:
Hi all,
I'm experiencing the same issue. I took a look at the is_zipfile code - seems like its not checking the start of the file for the magic numbers, but looking deeper in. I presume because the magic numbers at the start are considered unreliable for some reason? Seems like this opens the check up to unlucky random false positives though.
Offending file:
https://www.dropbox.com/s/t2kafn6ek1m2huy/CHPI_Rinex.crx?dl=1
----------
nosy: +bckohan
versions: +Python 3.7, Python 3.8
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42096>
_______________________________________
More information about the Python-bugs-list
mailing list