-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
GH-132417: ctypes: Fix potential Py_DECREF(NULL) in py_object handling #132418
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
Conversation
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
You don't need to force-push, because all commits will be squashed on merge. |
Misc/NEWS.d/next/Library/2025-04-11-21-48-49.gh-issue-132417.uILGdS.rst
Outdated
Show resolved
Hide resolved
Co-authored-by: Tomas R. <tomas.roun8@gmail.com>
Misc/NEWS.d/next/Library/2025-04-11-21-48-49.gh-issue-132417.uILGdS.rst
Outdated
Show resolved
Hide resolved
I'll let you apply / reject the suggestions and will merge this by the end of the week. Thanks for the fix! |
…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 <ikke@nicolast.be>
GH-132425 is a backport of this pull request to the 3.13 branch. |
…ng functions returning `PyObject *` (GH-132418) (#132425) GH-132417: ctypes: Fix potential `Py_DECREF(NULL)` when handling functions returning `PyObject *` (GH-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 <ikke@nicolast.be>
|
Uh oh!
There was an error while loading. Please reload this page.