gh-111178: fix UBSan failures in Python/traceback.c
#128259
+26
−16
Merged