Skip to content

[3.13] GH-132417: ctypes: Fix potential Py_DECREF(NULL) when handling functions returning PyObject * (GH-132418) #132425

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
Apr 12, 2025

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Apr 12, 2025

Some functions (such as PyErr_Occurred) with a restype set to ctypes.py_object may return NULL without setting an exception.
(cherry picked from commit 2aab2db)

Co-authored-by: Nicolas Trangez [email protected]

…g functions returning `PyObject *` (pythonGH-132418)

Some functions (such as `PyErr_Occurred`) with a `restype` set to `ctypes.py_object` may return NULL without setting an exception.
(cherry picked from commit 2aab2db)

Co-authored-by: Nicolas Trangez <[email protected]>
@picnixz
Copy link
Member

picnixz commented Apr 12, 2025

Hum the CLA signing is stuck.

@picnixz picnixz closed this Apr 12, 2025
auto-merge was automatically disabled April 12, 2025 08:50

Pull request was closed

@picnixz picnixz reopened this Apr 12, 2025
@picnixz picnixz enabled auto-merge (squash) April 12, 2025 08:50
@picnixz picnixz disabled auto-merge April 12, 2025 08:50
@picnixz picnixz enabled auto-merge (squash) April 12, 2025 08:50
@picnixz picnixz merged commit 0aabe44 into python:3.13 Apr 12, 2025
71 checks passed
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.

3 participants