You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
shutil.make_archive() adds the zip archive to itself when it is inside the archived tree #161112
With the "zip" format, shutil.make_archive() adds the archive it is writing to itself when the output path is inside the directory being archived. _make_zipfile() walks the tree and writes every regular file it finds, including the partly written archive (TarFile.add() already skips the archive for the tar formats).
The archive member is a truncated copy of the output. If a symlink in the tree points at the archive and is reached after some data has been flushed, the archive keeps growing until the disk is full or a file size limit is hit (OSError: [Errno 27] File too large).
Activity
gh-161112: Fix shutil.make_archive() adding a zip archive to itself (G…
[3.15] gh-161112: Fix shutil.make_archive() adding a zip archive to i…
[3.14] gh-161112: Fix shutil.make_archive() adding a zip archive to i…