Clang's documentation says that "By default, MemorySanitizer exits on the first detected error."
Does somebody know how to make MemorySanitizer not to stop on errors? The above sentence suggests that there is a way, but I do not find anything in the documentation.
It seems the
-fsanitize-recover=memory
option should fit.From clang documentation:
Using
-fsanitize-recover=all
should make all errors non fatal.There's also some Google documentation about this (search for continue-after-error):
https://github.com/google/sanitizers/wiki/AddressSanitizer