Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-43650: Fix MemoryError on zip.read in shutil._unpack_zipfile for …
…large files (pythonGH-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 f32c795) Co-authored-by: Igor Bolshakov <ibolsch@gmail.com>
- Loading branch information