This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | djw |
|---|---|
| Recipients | djw |
| Date | 2007年08月23日.20:53:16 |
| SpamBayes Score | 0.44941366 |
| Marked as misclassified | No |
| Message-id | <1187902396.85.0.749832175087.issue1003@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
This is in python2.5: zipfile.py SVN rev-56308 When testing a zipfile.Zipfile().read() with a password protected zip file, I would continually get exceptions. So I tracked this down to line 796-797: if ord(h[11]) != ((zinfo.CRC>>24)&255): raise RuntimeError, "Bad password for file %s" % name scope related data: bytes = `)¶G\x02ùû¬&\x1E#çÕ` h[11] = ` ̄` zinfo.CRC = `1554440319` ord(h[11]) == 175 ((zinfo.CRC>>24)&255) == 92 When I commented out the error check, the script extracted 150 JPGs with no corruption or errors in any of the images...so its just seems like an issue with the error check. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2007年08月23日 20:53:17 | djw | set | spambayes_score: 0.449414 -> 0.44941366 recipients: + djw |
| 2007年08月23日 20:53:16 | djw | set | spambayes_score: 0.449414 -> 0.449414 messageid: <1187902396.85.0.749832175087.issue1003@psf.upfronthosting.co.za> |
| 2007年08月23日 20:53:16 | djw | link | issue1003 messages |
| 2007年08月23日 20:53:16 | djw | create | |