[issue9720] zipfile writes incorrect local file header for large files in zip64
goodwin.gt
goodwin.gt at gmail.com
Sun Jun 26 01:32:27 CEST 2011
> Alan McIntyre <alan.mcintyre at gmail.com> added the comment:
>
> Here's an updated patch for the py3k trunk with tests. This pretty much
> doubles the runtime of test_zipfile64.py. The patch also removes some
> unnecessary code from the existing test_zipfile64 tests.
>
Hello Alan
I've faced this problem too.
I start packing a 4.73GB file, and receive the "struct error" as follows:
1) Python 2.7.2 production:
...
File "C:\Python27\lib\zipfile.py", line 1100, in write
zinfo.file_size))
struct.error: integer out of range for 'L' format code
2) Python 3.2 production:
...
File "C:\Python32\lib\zipfile.py", line 1142, in write
zinfo.file_size))
struct.error: argument out of range
Environment: Windows 7 Ultimate 32bit
Everytime packing process fails at 4,981,808,577 byte
I need a patch for Python 2.7.2 .
Could you adapt your patch appropriately?
Thanks.
--
View this message in context: http://old.nabble.com/-issue9720--zipfile-writes-incorrect-local-file-header-for-large-files-in-zip64-tp29578646p31928738.html
Sent from the Python - python-bugs-list mailing list archive at Nabble.com.
More information about the Python-bugs-list
mailing list