Message32532
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. |
|
Date |
User |
Action |
Args |
2007-08-23 14:58:46 | admin | link | issue1757072 messages |
2007-08-23 14:58:46 | admin | create | |
|