News for hackers. Stuff that matters.
Re:System memory allocator free operation zeroes out dealloc... by dlundqvist on Thursday September 22, 2022 @03:28PM (#32943553)
This. I personally think ASAN and it's friends are some of, if not the, best things to happen to C/C++ in the last decade. We use it at work, I use it in all my personal projects. We've found "countless" bugs with ASAN together with LSAN.

It should be part any project from the start, run as much as possible with ASAN when the performance hit can be afforded.

Re:System memory allocator free operation zeroes out dealloc... by pseudoramble on Thursday September 22, 2022 @05:52PM (#32945098)
Just confirming, but you're taking about Leak Sanitizer? https://clang.llvm.org/docs/LeakSanitizer.html. Not really familiar with these tools, definitely not the acronyms.
Re:System memory allocator free operation zeroes out dealloc... by dlundqvist on Thursday September 22, 2022 @05:59PM (#32945172)
Sorry, yes, I meant Leak Sanitizer.
Re:System memory allocator free operation zeroes out dealloc... by pseudoramble on Thursday September 22, 2022 @06:06PM (#32945241)
No need to be sorry! I appreciate it!

It was actually in the link the parent posted. I just missed it at first.

Re:System memory allocator free operation zeroes out dealloc... by thewebcount on Thursday September 22, 2022 @07:52PM (#32946158)
Agreed! Likewise, if you're doing anything multithreaded, ThreadSanitizer (TSAN) is a must!