Hacker News new | ask | show | jobs
by scatters 1971 days ago
It's called AddressSanitizer. You enable it with the compiler flag -fsanitize=address. It's supported by clang, gcc and lately MSVC.
4 comments

Address Sanitizer is not perfect, nor is it suitable to ship in production.
Asan binaries should never be shipped in security sensitive environments. It's not designed for that. It's unsafe.
You shouldn't use ASan in release builds since it may have exploitable vulnerabilities.
And used by around 36% of developers that bother to answer surveys.