Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Unified Diff: build/sanitizers/sanitizer_options.cc

Issue 2166003002: [sanitizers] add "strip_path_prefix=/../../" to default UBSan options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698