◐ Shell
clean mode source ↗

[3.12] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101) by miss-islington · Pull Request #126347 · python/cpython

…pythonGH-122101)

pythonGH-113977, pythonGH-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 556dc9b)

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>

@bedevere-app Bot mentioned this pull request

Nov 3, 2024