Commit 4d4d4cac authored by Aaron Green's avatar Aaron Green
Browse files

[fuzzing][gn] Drop explicit fuzzing corpora

This CL removes the optional corpora veriable from the fuzz_targets
ahead of its removal from the template.

SEC-225

Change-Id: Ic4c8aae124fb53219483e8c9cbaca1455017a176
parent 31eacbe1
......@@ -35,7 +35,7 @@ target(default_library_type, "crypto") {
public = crypto_headers
public_configs = [ ":boringssl_config" ]
is_fuzzer = false
foreach (config, configs) {
foreach(config, configs) {
if (config == "//build/config/sanitizers:fuzzer") {
is_fuzzer = true
}
......@@ -183,25 +183,28 @@ if (is_fuchsia) {
foreach(fuzzer, fuzzers) {
fuzz_target("${fuzzer}_fuzzer") {
visibility = [ ":*" ]
sources = ["src/fuzz/${fuzzer}.cc"]
configs += [ ":fuzz_config", ]
sources = [
"src/fuzz/${fuzzer}.cc",
]
configs += [ ":fuzz_config" ]
deps = [
":crypto",
":ssl",
]
corpora = [ get_path_info("src/fuzz/${fuzzer}_corpus", "abspath") ]
}
}
fuzz_package("boringssl_fuzzers") {
targets = []
foreach(fuzzer, fuzzers) {
targets += [":${fuzzer}_fuzzer"]
targets += [ ":${fuzzer}_fuzzer" ]
}
sanitizers = [ "asan", "ubsan" ]
sanitizers = [
"asan",
"ubsan",
]
}
################################################################################
# Configs
config("boringssl_config") {
......@@ -230,6 +233,7 @@ config("internal_config") {
config("host_config") {
visibility = [ ":*" ]
# pthread_rwlock_t on host requires a feature flag.
defines = [ "_XOPEN_SOURCE=700" ]
}
......@@ -244,15 +248,14 @@ config("test_config") {
# TODO(INTK-682): Newer googletest's are spamming about an API rename, but
# BoringSSL hasn't updated yet.
cflags = ["-Wno-deprecated-declarations"]
cflags = [ "-Wno-deprecated-declarations" ]
}
config("fuzz_config") {
visibility = [ ":*" ]
# BoringSSL explicitly decided against using the common LLVM fuzzing macro:
# https://boringssl-review.googlesource.com/c/boringssl/+/31244
defines = [
"BORINGSSL_UNSAFE_DETERMINISTIC_MODE",
]
defines = [ "BORINGSSL_UNSAFE_DETERMINISTIC_MODE" ]
configs = [ ":internal_config" ]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment