Author djw
Recipients djw
Date 2007-08-23.20:53:16
SpamBayes Score 0.449414
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:17djwsetspambayes_score: 0.449414 -> 0.449414
recipients: + djw
2007-08-23 20:53:16djwsetspambayes_score: 0.449414 -> 0.449414
messageid: <1187902396.85.0.749832175087.issue1003@psf.upfronthosting.co.za>
2007-08-23 20:53:16djwlinkissue1003 messages
2007-08-23 20:53:16djwcreate