[issue10876] Zipfile crashes when zip password is set to 610/844/numerous other numbers

2011-01-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the password-checking scheme uses a one-byte check against the zip header for consistency. So there is a (near) 1/256 chance of false positives, that is of bad passwords mistakenly detected as good; then the ZipFile class proceeds with unarchiving and

[issue10876] Zipfile crashes when zip password is set to 610/844/numerous other numbers

2011-01-09 Thread Kira Erethon
Kira Erethon added the comment: Update, tried this in another machine of mine, same exact code and this time it crashes at 68 -- title: Zipfile crashes when zip password is set to 610/844 -> Zipfile crashes when zip password is set to 610/844/numerous other numbers __

[issue10876] Zipfile crashes when zip password is set to 610/844

2011-01-09 Thread Kira Erethon
Changes by Kira Erethon : -- title: Zipfile crashes when zip password is set to 610 -> Zipfile crashes when zip password is set to 610/844 ___ Python tracker ___ ___

[issue10876] Zipfile crashes when zip password is set to 610

2011-01-09 Thread Kira Erethon
Kira Erethon added the comment: Ok, I tried recreating the bug and found out that I couldn't. Originally this happened when I tried to find the password of a zip file through a dictionary attack. The code I used is this: import zipfile zfile=raw_input("Please input zip's file name\n") dictio

[issue10876] Zipfile crashes when zip password is set to 610

2011-01-09 Thread Eric Smith
Eric Smith added the comment: What do you mean by "is set to 610"? Can you show us the code that caused this error? -- nosy: +eric.smith ___ Python tracker ___

[issue10876] Zipfile crashes when zip password is set to 610

2011-01-09 Thread Kira Erethon
Changes by Kira Erethon : -- title: Zipfile crashes when zip password is 610 -> Zipfile crashes when zip password is set to 610 ___ Python tracker ___ __