Message110149
If you open a ZipFile in append mode and modify the comment to be shorter than what was originally there, the file will become corrupted. Truncated data from the original comment is left "dangling" at the end of the zipfile.
A much more trivial bug discovered while writing tests for this: setting the "comment" attribute doesn't mark the zipfile as modified, so the change won't be written out unless you also modify one of the archive files.
The attached patch fixes (and adds tests for) these issues. |
|
Date |
User |
Action |
Args |
2010-07-12 23:56:46 | rfk | set | recipients:
+ rfk |
2010-07-12 23:56:46 | rfk | set | messageid: <1278979006.42.0.00730549521889.issue9239@psf.upfronthosting.co.za> |
2010-07-12 23:56:44 | rfk | link | issue9239 messages |
2010-07-12 23:56:44 | rfk | create | |
|