[ python-Bugs-1757072 ] Zipfile robustness

SourceForge.net noreply at sourceforge.net
Thu Jul 19 20:56:02 CEST 2007


Bugs item #1757072, was opened at 2007-07-19 13:56
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1757072&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Chris Mellon (arkanes)
Assigned to: Nobody/Anonymous (nobody)
Summary: Zipfile robustness

Initial Comment:
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.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1757072&group_id=5470


More information about the Python-bugs-list mailing list