6.8.2 UndefinedBehaviorSanitizer

UndefinedBehaviorSanitizer (aka UBSan) modifies the program at compile-time to catch various kinds of undefined behavior during program execution.

Different sanitize options (-fsanitize=alignment,float-cast-overflow,signed-integer-overflow) detect the following types of problems: