Skip to content

Conversation

@markshannon
Copy link
Member

@markshannon markshannon commented Sep 26, 2024

If a memory error occurs when copying values into the dict during object deallocation: clear the dict, so that the dict is at least a valid object.

@markshannon markshannon requested a review from DinoV September 27, 2024 16:25
@markshannon markshannon added the needs backport to 3.13 bugs and security fixes label Sep 27, 2024
Copy link
Contributor

@DinoV DinoV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@markshannon markshannon merged commit 0e21cc6 into python:main Sep 27, 2024
40 checks passed
@miss-islington-app
Copy link

Thanks @markshannon for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 27, 2024
…ing object dealloc (pythonGH-124627)

(cherry picked from commit 0e21cc6)

Co-authored-by: Mark Shannon <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented Sep 27, 2024

GH-124714 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Sep 27, 2024
Yhg1s pushed a commit that referenced this pull request Sep 27, 2024
…ring object dealloc (GH-124627) (#124714)

GH-124547: Clear instance dictionary if memory error occurs during object dealloc (GH-124627)
(cherry picked from commit 0e21cc6)

Co-authored-by: Mark Shannon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants