cpython/Lib/zipfile
Miss Islington (bot) 6e3e91fa76
[3.12] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101) (#126347)
gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101)

GH-113977, GH-120754: Remove unbounded reads from zipfile

Read without a size may read an unbounded amount of data + allocate
unbounded size buffers. Move to capped size reads to prevent potential
issues.

(cherry picked from commit 556dc9b8a7)

Co-authored-by: Cody Maloney <cmaloney@users.noreply.github.com>
Co-authored-by: Daniel Hillier <daniel.hillier@gmail.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
2024-11-03 05:48:19 +00:00
..
_path [3.12] gh-123270: Replaced SanitizedNames with a more surgical fix. (GH-123354) (#123411) 2024-09-02 09:19:40 -04:00
__init__.py [3.12] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101) (#126347) 2024-11-03 05:48:19 +00:00
__main__.py [3.12] gh-112578: Fix RuntimeWarning when running zipfile (GH-112579) (GH-112646) 2023-12-03 11:41:50 +00:00