|
|
|
|
|
by rurban
4575 days ago
|
|
asan being less feature complete than memcheck is arguably wrong. if you look at their feature overview https://code.google.com/p/address-sanitizer/wiki/ComparisonO... you'll see that they do detect stack oob and global oob (buffer overflows), and some use after return. being 10-20x faster also helps, that rarely someones uses valgrind (we found a lot of bugs even valgrind would have detected, if someone would have tried), but you can ship betas compiled with asan. |
|
Only the runtime part is considered to be less feature-complete that valgrind (because the runtime part of ASan only keeps information about allocated memory, not about memory initialization). It is compile-time instrumentation that make it possible to detect stack and global oob.