Sanitizers Address Thread UB Sanitizer
Find memory, threading, and undefined behavior bugs with the sanitizer family.
Runtime Checkers
Sanitizers are compile-time instrumented runtime checkers built into Clang and GCC. They catch bugs the type system cannot.
AddressSanitizer (ASan)
Detects memory errors: buffer overflows, use-after-free, double free, leaks. Slowdown ~2x.
g++ -fsanitize=address -g -O1 main.cpp
./a.outAll lessons in this course
- Static Analysis Tools clang-tidy cppcheck
- Sanitizers Address Thread UB Sanitizer
- Fuzzing with libFuzzer
- Continuous Integration for C++ Projects