Skip to content

[3.13] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101) - #126348

Merged
gpshead merged 1 commit into
python:3.13from
miss-islington:backport-556dc9b-3.13
Nov 3, 2024
Merged

gpshead merged 1 commit into
python:3.13from
miss-islington:backport-556dc9b-3.13

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

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 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>

…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>
@gpshead
gpshead enabled auto-merge (squash) November 3, 2024 05:33
@gpshead
gpshead merged commit 7435127 into python:3.13 Nov 3, 2024
@miss-islington
miss-islington deleted the backport-556dc9b-3.13 branch January 2, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants