Skip to content

[3.15] gh-151895: Fix marshal.loads() crash on dict reference-tracking failure (GH-151896) - #155902

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-5b96d39-3.15
Open

[3.15] gh-151895: Fix marshal.loads() crash on dict reference-tracking failure (GH-151896)#155902
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-5b96d39-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

Loading a reference-tracked dictionary dereferenced a NULL pointer when
the allocation that registers it for back-references failed under low
memory. It now raises MemoryError, matching the tuple and list paths.
(cherry picked from commit 5b96d39)

Co-authored-by: tonghuaroot (童话) tonghuaroot@gmail.com

… failure (pythonGH-151896)

Loading a reference-tracked dictionary dereferenced a NULL pointer when
the allocation that registers it for back-references failed under low
memory.  It now raises MemoryError, matching the tuple and list paths.
(cherry picked from commit 5b96d39)

Co-authored-by: tonghuaroot (童话) <tonghuaroot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants