This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Bram Stolk
Recipients Bram Stolk
Date 2020-01-10.21:57:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1578693479.87.0.550823648689.issue39294@roundup.psfhosted.org>
In-reply-to
Content
This has been tested with Windows Python 2.7 and Python 3.8

If you get the ZipInfo objects of a ZIP file that is larger than 2GiB, then all the ZipInfo entries with a header offset > 2G will report phantom 'extra' data.

import zipfile
zipname = "reallybig.zip"
z = zipfile.ZipFile( zipname )
zi = z.infolist()
for inf in zi:
      print( inf.filename, inf.header_offset, inf.extra )  

And observe that:
* All entries with offset < 2G will report no extra field.
* All entries with offset > 2G will report extra field.

It's hard to package this up as a self-contained test, because it requires a very large zip to test.
History
Date User Action Args
2020-01-10 21:57:59Bram Stolksetrecipients: + Bram Stolk
2020-01-10 21:57:59Bram Stolksetmessageid: <1578693479.87.0.550823648689.issue39294@roundup.psfhosted.org>
2020-01-10 21:57:59Bram Stolklinkissue39294 messages
2020-01-10 21:57:59Bram Stolkcreate