Skip to content

gh-151126: Fix a possible crash during the startup with no memory under Py_STACKREF_DEBUG#152478

Open
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-151126-Py_STACKREF_DEBUG
Open

gh-151126: Fix a possible crash during the startup with no memory under Py_STACKREF_DEBUG#152478
sobolevn wants to merge 1 commit into
python:mainfrom
sobolevn:issue-151126-Py_STACKREF_DEBUG

Conversation

@sobolevn

@sobolevn sobolevn commented Jun 28, 2026

Copy link
Copy Markdown
Member
  • _Py_hashtable_new_full can return NULL (when no memory is left) and does not set an exception
  • interp->open_stackrefs_table and interp->closed_stackrefs_table are required to be non-NULL
  • If they are, we can possibly get a NULL deref from using them

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.

1 participant