Sanitizer.cpp 347 B

12345678910111213141516171819
  1. #include "pch.h"
  2. #include <sanitizer/asan_interface.h>
  3. extern "C"
  4. {
  5. void __ubsan_on_report()
  6. {
  7. FAIL() << "Encountered an undefined behavior sanitizer error";
  8. }
  9. void __asan_on_error()
  10. {
  11. FAIL() << "Encountered an address sanitizer error";
  12. }
  13. void __tsan_on_report()
  14. {
  15. FAIL() << "Encountered a thread sanitizer error";
  16. }
  17. } // extern "C"