AMRIT RAI added the comment:
The issue stems from the following code inside the
def _write_end_record(self): method ,where the extra fields are trimmed .
if zinfo.header_offset > ZIP64_LIMIT:
extra.append(zinfo.header_offset)
header_offset = 0x
else:
header_off
New submission from AMRIT RAI :
The current zipFile implementation supports the allowZip64,which can make large
zip files.
There is a bug in the current implementation of close method ,where the extra
field is overwritten .
To reproduce it :
1.Create a directory with more then 4 GB of data