UndefinedBehaviorSanitizer
A sanitizer that reports undefined behavior such as signed overflow.
UBSan (-fsanitize=undefined) checks for signed overflow, invalid shifts, misaligned or null pointer use, and other UB, printing the source location when it happens.