Skip to content

gh-114414: Check for NULL after PyType_GetModuleByDef in _threadmodule #114415

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 2 commits into from
Jan 22, 2024

Conversation

sobolevn
Copy link
Member

@sobolevn sobolevn commented Jan 22, 2024

@erlend-aasland erlend-aasland merged commit d1b031c into python:main Jan 22, 2024
@erlend-aasland
Copy link
Contributor

Backport to 3.12? Perhaps also 3.11? I don't remember when this module was isolated.

@encukou
Copy link
Member

encukou commented Jan 22, 2024

It's not a bugfix.
Practically, you still get a crash rather soon; the assert adds a nice error message in debug builds. IMO, that will mainly be useful if this code changes in the future.

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.

4 participants