Advanced C++
Q93 / 100

What is undefined behavior sanitizer (UBSan)?

Correct! Well done.

Incorrect.

The correct answer is B) A runtime tool (-fsanitize=undefined) that detects signed integer overflow, null pointer dereference, misaligned access, and other UB at runtime

B

Correct Answer

A runtime tool (-fsanitize=undefined) that detects signed integer overflow, null pointer dereference, misaligned access, and other UB at runtime

Explanation

UBSan instruments code to detect UB at runtime. Compiling with -fsanitize=undefined catches issues that compilers may silently miscompile in production.

Progress
93/100