4 ms·
Yep, ASAN to find use-after-free, and valgrind memcheck to find forgotten-to-free.
by tempodox 2y ago
Yep, ASAN to find use-after-free, and valgrind memcheck to find forgotten-to-free.
- manwe150 2y agoASAN also checks for memory leaks like valgrind, the main difference with the tools is whether you can recompile all of libraries to get the compiler support for detection or whether binary instrumentation is better (https://github.com/google/sanitizers/wiki/AddressSanitizerLeakSanitizer https://github.com/google/sanitizers/wiki/AddressSanitizerLe...)
- tempodox 2y agoThanks, I didn't know the `ASAN_OPTIONS` part for macOS.