Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
ebcd0ced
Commit
ebcd0ced
authored
Sep 05, 2008
by
Antoine Pitrou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #3535: zipfile couldn't read some zip files larger than 2GB.
Reviewed by Amaury Forgeot d'Arc.
parent
cdeb24bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Lib/zipfile.py
Lib/zipfile.py
+3
-3
Misc/NEWS
Misc/NEWS
+3
-1
No files found.
Lib/zipfile.py
View file @
ebcd0ced
...
...
@@ -163,6 +163,7 @@ def _EndRecData64(fpin, offset, endrec):
return
endrec
# Update the original endrec using data from the ZIP64 record
endrec
[
_ECD_SIGNATURE
]
=
sig
endrec
[
_ECD_DISK_NUMBER
]
=
disk_num
endrec
[
_ECD_DISK_START
]
=
disk_dir
endrec
[
_ECD_ENTRIES_THIS_DISK
]
=
dircount
...
...
@@ -735,9 +736,8 @@ class ZipFile:
# "concat" is zero, unless zip was concatenated to another file
concat
=
endrec
[
_ECD_LOCATION
]
-
size_cd
-
offset_cd
if
endrec
[
_ECD_LOCATION
]
>
ZIP64_LIMIT
:
# If the offset of the "End of Central Dir" record requires Zip64
# extension structures, account for them
if
endrec
[
_ECD_SIGNATURE
]
==
stringEndArchive64
:
# If Zip64 extension structures are present, account for them
concat
-=
(
sizeEndCentDir64
+
sizeEndCentDir64Locator
)
if
self
.
debug
>
2
:
...
...
Misc/NEWS
View file @
ebcd0ced
...
...
@@ -56,7 +56,9 @@ C-API
Library
-------
- Issue 3776: Deprecate the bsddb package for removal in 3.0.
- Issue #3535: zipfile couldn't read some zip files larger than 2GB.
- Issue #3776: Deprecate the bsddb package for removal in 3.0.
- Issue #3762: platform.architecture() fails if python is lanched via
its symbolic link.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment