Skip to content

Glossary: C++ Beyond the Basics

AddressSanitizer (ASan)

Also written: ASan, AddressSanitizer, -fsanitize=address

A compiler-built checker, turned on with `-fsanitize=address`, that reports bad memory use such as reading past the end of a vector. It catches bugs that may otherwise appear to work.

Where the book teaches it

Related terms

UBSanThreadSanitizer (TSan)Undefined behavior