[Patches] [ python-Patches-780595 ] Fix zip file header format in zipfile.py
SourceForge.net
noreply@sourceforge.net
Thu, 31 Jul 2003 08:44:42 -0700
Patches item #780595, was opened at 2003-07-30 17:58
Message generated for change (Comment added) made by scuzball1
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=780595&group_id=5470
Category: Library (Lib)
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Submitted By: John M. Baughman (scuzball1)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix zip file header format in zipfile.py
Initial Comment:
The zip file header unpack format uses signed longs for
those values. For the readfile function to work with very
large files (2GB+ in my case) it needs to use unsigned
longs. In the case of these files, the readfile code would
break with a memory error when trying to buffer
backwards in memory since the value is converted to a
signed long producing a negative value.
This patch converts the header unpack format to use
unsigned longs.
-John M. Baughman
----------------------------------------------------------------------
>Comment By: John M. Baughman (scuzball1)
Date: 2003-07-31 09:44
Message:
Logged In: YES
user_id=834241
My bad, this patch is for zipfile.py.
Got in a slight hurry last night and didn't complete the
description well enough.
-John M. Baughman
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=780595&group_id=5470