[Patches] [ python-Patches-780595 ] Fix zip file header format to accept large file sizes

SourceForge.net noreply@sourceforge.net
Wed, 30 Jul 2003 16:58:46 -0700


Patches item #780595, was opened at 2003-07-30 17:58
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: None
Priority: 5
Submitted By: John M. Baughman (scuzball1)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix zip file header format to accept large file sizes

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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=780595&group_id=5470