New submission from Bohuslav "Slavek" Kabrda:

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

----------
components: Library (Lib)
messages: 177804
nosy: bkabrda
priority: normal
severity: normal
status: open
title: zipfile.is_zipfile wrongly recognizes non-zip as zip
versions: Python 2.7, Python 3.3

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16735>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to