diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-05-17 17:34:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-17 17:34:39 (GMT) |
commit | 049c4125f8a2b482c6129db68463f58e20c31526 (patch) | |
tree | 50491c260800426ad0ed0a3412ee13836f66a4ea /Doc/includes/sqlite3/shared_cache.py | |
parent | 2057ce87498fc30bcd358286175fe5ea34eac9da (diff) | |
download | cpython-049c4125f8a2b482c6129db68463f58e20c31526.zip cpython-049c4125f8a2b482c6129db68463f58e20c31526.tar.gz cpython-049c4125f8a2b482c6129db68463f58e20c31526.tar.bz2 |
bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for large files (GH-25058)
`shutil.unpack_archive()` tries to read the whole file into memory, making no use of any kind of smaller buffer. Process crashes for really large files: I.e. archive: ~1.7G, unpacked: ~10G. Before the crash it can easily take away all available RAM on smaller systems. Had to pull the code form `zipfile.Zipfile.extractall()` to fix this
Automerge-Triggered-By: GH:gpshead
(cherry picked from commit f32c7950e0077b6d9a8e217c2796fc582f18ca08)
Co-authored-by: Igor Bolshakov <ibolsch@gmail.com>
Diffstat (limited to 'Doc/includes/sqlite3/shared_cache.py')
0 files changed, 0 insertions, 0 deletions