Author ehuss
Recipients ehuss
Date 2007-12-14.01:31:17
SpamBayes Score 0.307828
Marked as misclassified No
Message-id <1197595878.01.0.706002731675.issue1622@psf.upfronthosting.co.za>
In-reply-to
Content
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.
Files
File name Uploaded
zipfile.patch ehuss, 2007-12-14.01:31:17
History
Date User Action Args
2007-12-14 01:31:18ehusssetspambayes_score: 0.307828 -> 0.307828
recipients: + ehuss
2007-12-14 01:31:18ehusssetspambayes_score: 0.307828 -> 0.307828
messageid: <1197595878.01.0.706002731675.issue1622@psf.upfronthosting.co.za>
2007-12-14 01:31:17ehusslinkissue1622 messages
2007-12-14 01:31:17ehusscreate