0Pricing
C++ Academy · Lesson

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.out

All lessons in this course

  1. Static Analysis Tools clang-tidy cppcheck
  2. Sanitizers Address Thread UB Sanitizer
  3. Fuzzing with libFuzzer
  4. Continuous Integration for C++ Projects
← Back to C++ Academy