gh-111178: fix UBSan failures in _elementtree.c
#127982
+80
−53
Merged