AddressSanitizer
A compiler option that makes memory bugs crash loudly with a report.
AddressSanitizer (ASan, -fsanitize=address or /fsanitize=address) instruments memory accesses to catch out-of-bounds reads and writes, use-after-free, and double free at the moment they happen.
See also