[issue3997] zipfile and winzip
Amaury Forgeot d'Arc
report at bugs.python.org
Sat Jan 17 22:39:50 CET 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Oops, I did see this before, but forgot to merge the patches.
It appears that "centDirOffset == 0xffffffff" is not the correct test
for detecting zip64 structure. From the PKZip notes, a value of
0xffffffff does imply a zip64 format, not the other way round.
So it seems necessary to always try to read the zip64 info (the _EndRecData64 function does not fail if the format is not zip64 - is
simply returns the previous structure)
Patch is attached, and now the test passes.
----------
keywords: +needs review
Added file: http://bugs.python.org/file12778/zip64-alwaystry.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3997>
_______________________________________
More information about the Python-bugs-list
mailing list