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

Side by Side Diff: build/config/sanitizers/BUILD.gn

Issue 1881773003: [libfuzzer] Add -fsanitize=shift for is_ubsan_security flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 import("//build/config/chrome_build.gni") 5 import("//build/config/chrome_build.gni")
6 import("//build/config/chromecast_build.gni") 6 import("//build/config/chromecast_build.gni")
7 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 8
9 # Contains the dependencies needed for sanitizers to link into executables and 9 # Contains the dependencies needed for sanitizers to link into executables and
10 # shared_libraries. Unconditionally depend upon this target as it is empty if 10 # shared_libraries. Unconditionally depend upon this target as it is empty if
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir) 248 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir)
249 cflags += [ 249 cflags += [
250 "-fsanitize=vptr", 250 "-fsanitize=vptr",
251 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path", 251 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path",
252 ] 252 ]
253 } 253 }
254 if (is_ubsan_security) { 254 if (is_ubsan_security) {
255 ubsan_blacklist_path = 255 ubsan_blacklist_path =
256 rebase_path("//tools/ubsan/blacklist.txt", root_build_dir) 256 rebase_path("//tools/ubsan/blacklist.txt", root_build_dir)
257 cflags += [ 257 cflags += [
258 "-fsanitize=signed-integer-overflow", 258 "-fsanitize=signed-integer-overflow,shift",
259 "-fsanitize-blacklist=$ubsan_blacklist_path", 259 "-fsanitize-blacklist=$ubsan_blacklist_path",
260 ] 260 ]
261 } 261 }
262 if (is_cfi && !is_nacl) { 262 if (is_cfi && !is_nacl) {
263 cfi_blacklist_path = 263 cfi_blacklist_path =
264 rebase_path("//tools/cfi/blacklist.txt", root_build_dir) 264 rebase_path("//tools/cfi/blacklist.txt", root_build_dir)
265 cflags += [ 265 cflags += [
266 "-fsanitize=cfi-vcall", 266 "-fsanitize=cfi-vcall",
267 "-fsanitize=cfi-derived-cast", 267 "-fsanitize=cfi-derived-cast",
268 "-fsanitize=cfi-unrelated-cast", 268 "-fsanitize=cfi-unrelated-cast",
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 if (target_cpu == "arm") { 306 if (target_cpu == "arm") {
307 # http://crbug.com/517105 307 # http://crbug.com/517105
308 cflags += [ 308 cflags += [
309 "-mllvm", 309 "-mllvm",
310 "-sanitizer-coverage-block-threshold=0", 310 "-sanitizer-coverage-block-threshold=0",
311 ] 311 ]
312 } 312 }
313 defines = [ "SANITIZER_COVERAGE" ] 313 defines = [ "SANITIZER_COVERAGE" ]
314 } 314 }
315 } 315 }
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