[New-bugs-announce] [issue10876] Zipfile crashes when zip password is 610

Kira Erethon report at bugs.python.org
Sun Jan 9 23:17:47 CET 2011

New submission from Kira Erethon <shinjierethon at gmail.com>:

Was playing around with Zipfile and passwords in zip files and I noticed that when the password on zipfile.setpassword(pwd) was set 610, the program crashed with the following errors

  File "/usr/lib/python2.6/zipfile.py", line 938, in extractall
    self.extract(zipinfo, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 926, in extract
    return self._extract_member(member, path, pwd)
  File "/usr/lib/python2.6/zipfile.py", line 971, in _extract_member
    shutil.copyfileobj(source, target)
  File "/usr/lib/python2.6/shutil.py", line 28, in copyfileobj
    buf = fsrc.read(length)
  File "/usr/lib/python2.6/zipfile.py", line 612, in read
    newdata = self.dc.decompress(newdata)
zlib.error: Error -3 while decompressing: invalid distance too far back

components: Extension Modules
messages: 125867
nosy: Kira.Kapoios
priority: normal
severity: normal
status: open
title: Zipfile crashes when zip password is 610
type: crash
versions: Python 2.6

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list