cpython/Modules/_ctypes
Bénédikt Tran fafc618e2f
gh-111178: fix UBSan failures in Modules/_ctypes (#129071)
This fixes UBSan failures for the following objects:

- `DictRemoverObject` and `StructParamObject`,
- `CDataObject` and `CFieldObject`, and
- `PyCFuncPtrObject` and `PyCArgObject`.

On the default build, we convert the `LOCK_PTR` and `UNLOCK_PTR` macros to
functions with an unused parameter to ease "unused variable" compiler warnings
suppression. Finally, we also remove some redundant casts to `PyObject *`.
2025-01-21 11:50:13 +01:00
..
clinic gh-111178: Generate correct signature for most self converters (#128447) 2025-01-20 12:40:18 +01:00
_ctypes.c gh-111178: fix UBSan failures in Modules/_ctypes (#129071) 2025-01-21 11:50:13 +01:00
_ctypes_test.c gh-125206: Bug in ctypes with old libffi is fixed (#125322) 2024-10-15 16:17:10 +00:00
_ctypes_test.h Copy ctypes-0.9.9.4 sources from external into the trunk. 2006-03-08 19:35:11 +00:00
_ctypes_test_generated.c.h gh-97588: Align ctypes struct layout to GCC/MSVC (GH-97702) 2024-05-29 12:02:53 +02:00
callbacks.c gh-127295: ctypes: Switch field accessors to fixed-width integers (GH-127297) 2024-12-20 14:28:18 +01:00
callproc.c gh-111178: fix UBSan failures in Modules/_ctypes (#129071) 2025-01-21 11:50:13 +01:00
cfield.c gh-111178: fix UBSan failures in Modules/_ctypes (#129071) 2025-01-21 11:50:13 +01:00
ctypes.h gh-111178: fix UBSan failures in Modules/_ctypes (#129071) 2025-01-21 11:50:13 +01: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-126937: ctypes: fix TypeError when a field's size is >65535 bytes (GH-126938) 2024-12-10 13:13:11 +01:00