Message177804
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 |
|
Date |
User |
Action |
Args |
2012-12-20 08:30:11 | bkabrda | set | recipients:
+ bkabrda |
2012-12-20 08:30:11 | bkabrda | set | messageid: <1355992211.63.0.283559299274.issue16735@psf.upfronthosting.co.za> |
2012-12-20 08:30:11 | bkabrda | link | issue16735 messages |
2012-12-20 08:30:11 | bkabrda | create | |
|