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.
Created on 2007年08月23日 20:53 by djw, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| exZipFile.zip | djw, 2007年08月30日 21:17 | |||
| Messages (5) | |||
|---|---|---|---|
| msg55210 - (view) | Author: David W (djw) | Date: 2007年08月23日 20:53 | |
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. |
|||
| msg55462 - (view) | Author: Gregory P. Smith (gregory.p.smith) * (Python committer) | Date: 2007年08月30日 04:51 | |
can you provide a test zip file demonstrating the problem? |
|||
| msg55514 - (view) | Author: David W (djw) | Date: 2007年08月30日 21:17 | |
PW: 13*CrC!x Verified again that this causes the false exception. Waiting on the data vendor to give me more info about the file and what is used to create it. |
|||
| msg60250 - (view) | Author: Gregory P. Smith (gregory.p.smith) * (Python committer) | Date: 2008年01月19日 23:51 | |
this failure also occurs on simple zip files created using infozip's zip with -e to "encrypt" the contents. debugging... |
|||
| msg60252 - (view) | Author: Gregory P. Smith (gregory.p.smith) * (Python committer) | Date: 2008年01月20日 01:26 | |
Fixed in r60121 (2.6). zip file decryption "check" bytes were more complicated than the existing code supported. Algorithm updated. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:26 | admin | set | github: 45344 |
| 2008年01月20日 01:26:10 | gregory.p.smith | set | status: open -> closed resolution: fixed messages: + msg60252 versions: + Python 2.6, - Python 2.5 |
| 2008年01月19日 23:51:07 | gregory.p.smith | set | messages: + msg60250 |
| 2007年09月17日 06:38:24 | jafo | set | priority: normal |
| 2007年08月30日 21:17:24 | djw | set | files:
+ exZipFile.zip messages: + msg55514 |
| 2007年08月30日 04:51:23 | gregory.p.smith | set | assignee: gregory.p.smith type: crash -> behavior messages: + msg55462 nosy: + gregory.p.smith |
| 2007年08月23日 20:53:16 | djw | create | |