3 ms·
How well does ASAN cope when the libraries your application uses aren't compiled with ASAN? Does it cause false negatives or false positives?
by dezgeg 3y ago
How well does ASAN cope when the libraries your application uses aren't compiled with ASAN? Does it cause false negatives or false positives?
- nlewycky 3y agoASan will have false negatives on the memory accesses performed in the code which isn't compiled with ASan. It works fine, otherwise. FWIW, UBSan (-fsanitize=undefined) follows the same rule. For this reason it's common to combine them and build once with -fsanitize=address,undefined. Don't forget to pass that while linking too. ThreadSanitizer requires that all code with atomic accesses be instrumented. MemorySanitizer requires that all code which writes to a byte in memory be instrumented.