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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file contains the default options for various compiler-based dynamic 5 // This file contains the default options for various compiler-based dynamic
6 // tools. 6 // tools.
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX) 10 #if defined(ADDRESS_SANITIZER) && defined(OS_MACOSX)
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() { 171 SANITIZER_HOOK_ATTRIBUTE const char *__lsan_default_suppressions() {
172 return kLSanDefaultSuppressions; 172 return kLSanDefaultSuppressions;
173 } 173 }
174 174
175 #endif // LEAK_SANITIZER 175 #endif // LEAK_SANITIZER
176 176
177 #if defined(UNDEFINED_SANITIZER) 177 #if defined(UNDEFINED_SANITIZER)
178 // Default options for UndefinedBehaviorSanitizer: 178 // Default options for UndefinedBehaviorSanitizer:
179 // print_stacktrace=1 - print the stacktrace when UBSan reports an error. 179 // print_stacktrace=1 - print the stacktrace when UBSan reports an error.
180 const char kUbsanDefaultOptions[] = "print_stacktrace=1"; 180 const char kUbsanDefaultOptions[] =
181 "print_stacktrace=1 strip_path_prefix=/../../ ";
181 182
182 SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() { 183 SANITIZER_HOOK_ATTRIBUTE const char* __ubsan_default_options() {
183 return kUbsanDefaultOptions; 184 return kUbsanDefaultOptions;
184 } 185 }
185 186
186 #endif // UNDEFINED_SANITIZER 187 #endif // UNDEFINED_SANITIZER
OLDNEW
« 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