You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
AddressSanitizer is a fast memory error detector. It consists of a compiler instrumentation module and a run-time library. see https://github.com/google/sanitizers/wiki/AddressSanitizer. The tool can detect the following types of bugs:
Out-of-bounds accesses to heap, stack and globals
Use-after-free
Use-after-return (clang flag -fsanitize-address-use-after-return=(never|runtime|always) default: runtime)
Enable with: ASAN_OPTIONS=detect_stack_use_after_return=1 (already enabled on Linux).
Is your feature request related to a problem? Please describe.
AddressSanitizer is a fast memory error detector. It consists of a compiler instrumentation module and a run-time library. see https://github.com/google/sanitizers/wiki/AddressSanitizer. The tool can detect the following types of bugs:
This tool is very fast. The average slowdown of the instrumented program is ~2x (see
And I think it's quite useful in C/C++ projects. You can simply enable it by compiling and linking your program with
-fsanitize=address
flag.Describe the solution you'd like
Maybe we can add it as an option in
cmake/StandardSettings.cmake
?For example, like this:
The text was updated successfully, but these errors were encountered: