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 arkanes
Recipients
Date 2007-07-19.18:56:02
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
One of the ways that zipfile.ZipFile checks for a valid zipfile is by confirming that the specified comment length matches the found comment. I have encountered zipfiles in the wild that indicate a comment length of 0, but have filled the comment area with an arbitrary amount of nulls. In the interests of robustness, I think that "comment = comment.rstrip('\x00') should be added to the zipfile check.
History
Date User Action Args
2007-08-23 14:58:46adminlinkissue1757072 messages
2007-08-23 14:58:46admincreate