Skip to content

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

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

[3.12] gh-113977, gh-120754: Remove unbounded reads from zipfile (GH-122101)#126347
gpshead merged 1 commit into
python:3.12from
miss-islington:backport-556dc9b-3.12

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 6e3e91f into python:3.12 Nov 3, 2024
@miss-islington
miss-islington deleted the backport-556dc9b-3.12 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