gh-111178: fix UBSan failures in Modules/_ctypes
#129071
+151
−114
Merged