Index: build/sanitizers/sanitizer_options.cc |
diff --git a/build/sanitizers/sanitizer_options.cc b/build/sanitizers/sanitizer_options.cc |
index d25300d16efc838c00f0bf3396948ebc67fa81d5..39fa1403c975f379160571fd86c0ef339d111202 100644 |
--- a/build/sanitizers/sanitizer_options.cc |
+++ b/build/sanitizers/sanitizer_options.cc |
@@ -177,7 +177,8 @@ SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() { |
#if defined(UNDEFINED_SANITIZER) |
// Default options for UndefinedBehaviorSanitizer: |
// print_stacktrace=1 - print the stacktrace when UBSan reports an error. |
-const char kUbsanDefaultOptions[] = "print_stacktrace=1"; |
+const char kUbsanDefaultOptions[] = |
+ "print_stacktrace=1 strip_path_prefix=/../../ "; |
SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() { |
return kUbsanDefaultOptions; |