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 bkabrda
Recipients bkabrda
Date 2012-12-20.08:30:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1355992211.63.0.283559299274.issue16735@psf.upfronthosting.co.za>
In-reply-to
Content
When I use zipfile.is_zipfile on file fastjar (sample uploaded at [1]) from libgcj, I get True, while I should get False (reproducible with fastjar from libgcj 4.7.2 on Fedora 18).
This is caused by stringEndArchive string being present in the file, but the file still isn't zip. Would it be possible to add some further checks to eliminate this kind of errors? I'd like to submit a patch but I'm not sure what to check for, maybe some other constants mentioned in the ZIP format definition?

Thanks a lot.

[1] http://bkabrda.fedorapeople.org/fastjar
History
Date User Action Args
2012-12-20 08:30:11bkabrdasetrecipients: + bkabrda
2012-12-20 08:30:11bkabrdasetmessageid: <1355992211.63.0.283559299274.issue16735@psf.upfronthosting.co.za>
2012-12-20 08:30:11bkabrdalinkissue16735 messages
2012-12-20 08:30:11bkabrdacreate