cpython/Modules/_ctypes
Miss Islington (bot) 0aabe44fa8
[3.13] GH-132417: ctypes: Fix potential Py_DECREF(NULL) when handling 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 2aab2db146)

Co-authored-by: Nicolas Trangez <ikke@nicolast.be>
2025-04-12 09:14:07 +00:00
..
clinic [3.13] gh-119661: Add _Py_SINGLETON() include in Argumenet Clinic (#119712) (#119716) 2024-05-29 10:32:00 +00:00
_ctypes.c [3.13] gh-126742: Add _PyErr_SetLocaleString, use it for gdbm & dlerror messages (GH-126746) (GH-128023) 2024-12-17 11:45:29 +00:00
_ctypes_test.c [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
_ctypes_test.h
callbacks.c [3.13] gh-129502: Fix handling errors in ctypes callbacks (GH-129504) (#129517) 2025-02-04 00:05:51 +00:00
callproc.c [3.13] GH-132417: ctypes: Fix potential Py_DECREF(NULL) when handling functions returning PyObject * (GH-132418) (#132425) 2025-04-12 09:14:07 +00:00
cfield.c gh-117142: Port _ctypes to multi-phase init (GH-117181) 2024-04-10 11:00:01 +00:00
ctypes.h [3.13] gh-117142: Slightly hacky fix for memory leak of StgInfo (GH-119424) (GH-119468) 2024-05-30 11:24:42 +02:00
malloc_closure.c gh-108765: Python.h no longer includes <unistd.h> (#108783) 2023-09-02 16:50:18 +02:00
stgdict.c gh-117142: Port _ctypes to multi-phase init (GH-117181) 2024-04-10 11:00:01 +00:00