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

Unified Diff: build/config/sanitizers/BUILD.gn

Issue 1832213002: [libfuzzer] separate libfuzzer ubsan configuration and ubsan build config setup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename Created 4 years, 9 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 | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/sanitizers/BUILD.gn
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
index 0da971cc59443fc84d3191d445f90baff208f67c..d373c84d8a06a6f710da4aae5e017186e45d65f1 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -246,6 +246,14 @@ config("default_sanitizer_flags") {
"-fsanitize-blacklist=$ubsan_vptr_blacklist_path",
]
}
+ if (is_ubsan_security) {
+ ubsan_blacklist_path =
+ rebase_path("//tools/ubsan/blacklist.txt", root_build_dir)
+ cflags += [
+ "-fsanitize=signed-integer-overflow",
+ "-fsanitize-blacklist=$ubsan_blacklist_path",
+ ]
+ }
if (is_lto && !is_nacl) {
cflags += [ "-flto" ]
« no previous file with comments | « no previous file | build/config/sanitizers/sanitizers.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698