8000 gh-111178: fix UBSan failures in `Modules/_ctypes` (#129071) · python/cpython@fafc618 · GitHub
[go: up one dir, main page]

Skip to content

Commit fafc618

Browse files
authored
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 *`.
1 parent 36f341c commit fafc618

File tree

4 files changed

+151
-114
lines changed

4 files changed

+151
-114
lines changed

0 commit comments

Comments
 (0)
0