Message41170
| Author |
ahlstromjc |
| Recipients |
| Date |
2002年09月19日.19:29:21 |
| SpamBayes Score |
| Marked as misclassified |
| Message-id |
| In-reply-to |
| Content |
Module zipfile can not read ZIP archives which have
appended archive comments. I have only gotten two
complaints about this, but I feel that this limitation
should be removed. Archive comments are appended to
ZIP archives, and can be up to 64K bytes long. Reading
them would require searching the end of the archive for
the end record magic number.
The attached patch will (1) seek and verify a zero
length comment; and if this fails (2) search the last
4K bytes of the file for a comment. The 4K limitation
(down from 64K) is for efficiency.
This was tested on Python 2.2.1, but zipfile.py has
changed since then. So the patch was hand edited into
today's CVS zipfile.py version. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2007年08月23日 15:15:21 | admin | link | issue611760 messages |
| 2007年08月23日 15:15:21 | admin | create |
|