[issue9720] zipfile writes incorrect local file header for large files in zip64

Craig de Stigter report at bugs.python.org
Fri Sep 3 23:47:14 CEST 2010


Craig de Stigter <craig.ds at gmail.com> added the comment:

Yes, the bug still exists in Python 3.1.2. However, struct.pack() no longer silently ignores overflow, so I get this error instead:


>>> z.write('foo.txt')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.1/zipfile.py", line 1095, in write
    zinfo.file_size))
struct.error: argument out of range

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9720>
_______________________________________


More information about the Python-bugs-list mailing list