Author ehuss
Recipients ehuss
Date 2007-12-14.01:31:17
SpamBayes Score 0.307828
Marked as misclassified No
Message-id <>
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.
File name Uploaded
zipfile.patch ehuss, 2007-12-14.01:31:17
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: <>
2007-12-14 01:31:17ehusslinkissue1622 messages
2007-12-14 01:31:17ehusscreate