Message32532
| 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:46 | admin | link | issue1757072 messages |
| 2007年08月23日 14:58:46 | admin | create |
|