Amaury Forgeot d'Arc <amaur...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue3997>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to