Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gh-115376: fix segfault in _testinternalcapi.compiler_codegen on bad input #115379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Feb 12, 2024

Fixes #115376.

The mess is that compiler_codegen enters a scope and then sometimes exits is and sometimes not. After this PR the caller is responsible for entering and existing the scope.

Copy link
Member

@markshannon markshannon left a comment

Choose a reason for hiding this comment

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

Looks good

@iritkatriel iritkatriel merged commit 3a9e67a into python:main Feb 15, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
LukasWoodtli pushed a commit to LukasWoodtli/cpython that referenced this pull request Jan 22, 2025
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.

_testinternalcapi.compiler_codegen segfaults on bad input
2 participants