gh-111178: fix UBSan failures for Modules/_testcapi/*.c
#131613
+25
−15
Merged