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 Thomas.Waldmann
Recipients Thomas.Waldmann, alanmcintyre, serhiy.storchaka, twouters
Date 2016-10-20.22:26:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477002405.21.0.814259301844.issue28494@psf.upfronthosting.co.za>
In-reply-to
Content
patch for py2.7

The EOCD structure is at EOF.

It either does not contain a comment (this is what the existing code checks first) or it contains a comment of the length that is specified in the structure.

The patch checks consistency specified length vs. real length (end of fixed part of structure up to EOF). If this does not match, it is likely not a zip file, but just a file that happens to have the magic 4 bytes somewhere in its last 64kB.
History
Date User Action Args
2016-10-20 22:26:45Thomas.Waldmannsetrecipients: + Thomas.Waldmann, twouters, alanmcintyre, serhiy.storchaka
2016-10-20 22:26:45Thomas.Waldmannsetmessageid: <1477002405.21.0.814259301844.issue28494@psf.upfronthosting.co.za>
2016-10-20 22:26:45Thomas.Waldmannlinkissue28494 messages
2016-10-20 22:26:45Thomas.Waldmanncreate