This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Fix zip file header format in zipfile.py
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: gward Nosy List: georg.brandl, gward, scuzball1
Priority: normal Keywords: patch

Created on 2003-07-30 23:58 by scuzball1, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
zipfile.patch scuzball1, 2003-07-30 23:58 Patch for converting header unpack formats to use unsigned longs
Messages (3)
msg44367 - (view) Author: John M. Baughman (scuzball1) Date: 2003-07-30 23:58
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
msg44368 - (view) Author: John M. Baughman (scuzball1) Date: 2003-07-31 15:44
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
msg44369 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2006-07-30 13:39
Logged In: YES 
user_id=849994

Something similar has been done in rev. 36413.
History
Date User Action Args
2022-04-10 16:10:22adminsetgithub: 38979
2003-07-30 23:58:46scuzball1create