Lightning Talk: You Should Use AddressSanitizer
summary
AddressSanitizer compiles code with instrumentation that catches heap and stack buffer overflows use after free initialization order bugs and leaks and it prints allocation and free stack traces so you see where things were allocated and freed -fsanitize=address with -g and frame pointers is the common invocation it runs about 2x slowdown (still roughly 10x faster than Valgrind), inflates binary and VM usage, requires recompilation and good test coverage, and reliably reduces crashes and nondeterminism.
AI-written summary · about
related talks
50mAddressSanitizer/ThreadSanitizer for Linux Kernel
01h 29mAddressSanitizer on Windows
59mBeyond Sanitizers...
40mAddressSanitizer, or How to Make C/C++ Programs More Reliable and Secure
01h 00mSanitize for your Sanity: Sanitizers tools for Modern C++
49mTeaching Containers and Allocators How to Sanitize Addresses
01h 02mSanitize your C++ code
44mDebugging memory corruptions in C++
