]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-118107: Fix zipimporter ZIP64 handling. (GH-118108)
authorJohn Sirois <john.sirois@gmail.com>
Tue, 7 May 2024 07:23:27 +0000 (02:23 -0500)
committerGitHub <noreply@github.com>
Tue, 7 May 2024 07:23:27 +0000 (09:23 +0200)
commit49258efada0cb0fc58ccffc018ff310b8f7f4570
tree63671b0c8ea87f6490daee9267534c6c3880e6b9
parent698417f2f677b7b9373f8a2f202b6c18870bf3c2
gh-118107: Fix zipimporter ZIP64 handling. (GH-118108)

Add missing import to code that handles too large files and offsets.
Use list, not tuple, for a mutable sequence.

Add tests to prevent similar mistakes.

---------

Co-authored-by: Gregory P. Smith [Google LLC] <greg@krypto.org>
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
Lib/test/test_zipimport.py
Lib/test/zipimport_data/sparse-zip64-c0-0x000000000.part [new file with mode: 0644]
Lib/test/zipimport_data/sparse-zip64-c0-0x100000000.part [new file with mode: 0644]
Lib/test/zipimport_data/sparse-zip64-c0-0x200000000.part [new file with mode: 0644]
Lib/zipimport.py
Makefile.pre.in
Misc/NEWS.d/next/Library/2024-04-19-09-28-43.gh-issue-118107.Mdsr1J.rst [new file with mode: 0644]