summaryrefslogtreecommitdiffstats
path: root/Doc/extending
diff options
context:
space:
mode:
authorIgor Bolshakov <ibolsch@gmail.com>2021-05-17 08:28:21 (GMT)
committerGitHub <noreply@github.com>2021-05-17 08:28:21 (GMT)
commitf32c7950e0077b6d9a8e217c2796fc582f18ca08 (patch)
tree783fb3a3cd88974bf33f813170cd29789774de80 /Doc/extending
parent83f0f8d62f279f846a92fede2244beaa0149b9d8 (diff)
downloadcpython-f32c7950e0077b6d9a8e217c2796fc582f18ca08.zip
cpython-f32c7950e0077b6d9a8e217c2796fc582f18ca08.tar.gz
cpython-f32c7950e0077b6d9a8e217c2796fc582f18ca08.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
Diffstat (limited to 'Doc/extending')
0 files changed, 0 insertions, 0 deletions