[New-bugs-announce] [issue1622] zipfile hangs on certain zip files
report at bugs.python.org
Fri Dec 14 02:31:18 CET 2007
New submission from Eric Huss:
Creating a ZipFile object with a certain type of zip file can cause it
to go into an infinite loop. The problem is the new extra field parsing
routine. It unpacks integers as a signed value, which if they are
sufficiently large (over 32767), then it will loop forever.
There are many places in the zipfile module that incorrectly unpack
values as signed integers, but this is the only place that I can
determine that causes a serious problem.
Attached is a fix.
components: Library (Lib)
title: zipfile hangs on certain zip files
versions: Python 2.5, Python 2.6
Added file: http://bugs.python.org/file8948/zipfile.patch
Tracker <report at bugs.python.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 457 bytes
Desc: not available
Url : http://mail.python.org/pipermail/new-bugs-announce/attachments/20071214/ff72c7b6/attachment.obj
More information about the New-bugs-announce