gh-111178: fix UBSan failures in Modules/posixmodule.c
#129788
+31
−20
Merged