Xcode 7 allows you to use a sanitizer to search for memory problems in C / C ++.
https://github.com/google/sanitizers/wiki/AddressSanitizer
The inclusion of an address sanitizer passes the compilation and linker flag -fsanitize=address, and also determines _LIBCPP_HAS_NO_ASAN.
When I create my library from the command line and run tests in a sanitized assembly without definition, _LIBCPP_HAS_NO_ASANI see non-recurring memory access problems associated with addressing-disinfection. Determining _LIBCPP_HAS_NO_ASANhow Xcode does this gets rid of disinfectant problems, but I'm curious why this is needed.
Why do I need to detect _LIBCPP_HAS_NO_ASANusing AppleClang7 to avoid memory access issues in libcxx?
source
share