2 ms·
The Address Sanitizer (ASAN) in both clang and gcc is/are excellent: https://github.com/google/sanitizers/wiki/addresssanitizer https://github.com/google/sanit
by lsllc 2y ago
The Address Sanitizer (ASAN) in both clang and gcc is/are excellent:
https://github.com/google/sanitizers/wiki/addresssanitizer https://github.com/google/sanitizers/wiki/addresssanitizer
I believe to integrate a custom allocator with ASAN, you need to look at the memory "poisoning" mechanisms:
https://github.com/google/sanitizers/wiki/AddressSanitizerManualPoisoning https://github.com/google/sanitizers/wiki/AddressSanitizerMa...
- pjmlp 2y agoIt is also available on MVSC nowadays. https://learn.microsoft.com/en-us/cpp/sanitizers/asan?view=msvc-170 https://learn.microsoft.com/en-us/cpp/sanitizers/asan?view=m... .NET team also makes use of it for the runtime parts, https://devblogs.microsoft.com/cppblog/msvc-address-sanitizer-adoption-in-nets-coreclr/ https://devblogs.microsoft.com/cppblog/msvc-address-sanitize...