[Patches] [ python-Patches-780595 ] Fix zip file header format in
zipfile.py
SourceForge.net
noreply at sourceforge.net
Mon Sep 1 16:56:00 EDT 2003
Patches item #780595, was opened at 2003-07-30 18:58
Message generated for change (Settings changed) made by rhettinger
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: Greg Ward (gward)
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 10: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
More information about the Patches
mailing list