From f93e12f1f7625bd9ed68e603b05c7c4556c7b670 Mon Sep 17 00:00:00 2001 From: weichaox Date: Thu, 30 Dec 2021 06:51:08 +0000 Subject: [PATCH] bugfix Signed-off-by: weichaox --- libs/fuzzlib/BUILD.gn | 96 +++++++++++++++++++++---------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/libs/fuzzlib/BUILD.gn b/libs/fuzzlib/BUILD.gn index 2523827..025e5fb 100644 --- a/libs/fuzzlib/BUILD.gn +++ b/libs/fuzzlib/BUILD.gn @@ -11,51 +11,51 @@ # See the License for the specific language governing permissions and # limitations under the License. -import("///build/config/sanitizers/sanitizers.gni") - -fuzzing_engine_remove_configs = [ - "//build/config/coverage:default_coverage", - "//build/config/sanitizers:default_sanitizer_flags", -] - -fuzzing_engine_add_configs = - [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] - -source_set("libfuzzer") { - sources = [ - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerCrossOver.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsym.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerFork.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerIO.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerMerge.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerMutate.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtil.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilDarwin.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp", - "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp", - ] - - configs -= fuzzing_engine_remove_configs - configs += fuzzing_engine_add_configs -} - -if (use_afl) { - source_set("afl_driver") { - sources = [ "src/afl/afl_driver.cpp" ] - - configs -= fuzzing_engine_remove_configs - configs += fuzzing_engine_add_configs - } -} +# import("///build/config/sanitizers/sanitizers.gni") +# +# fuzzing_engine_remove_configs = [ +# "//build/config/coverage:default_coverage", +# "//build/config/sanitizers:default_sanitizer_flags", +# ] +# +# fuzzing_engine_add_configs = +# [ "//build/config/sanitizers:default_sanitizer_flags_but_coverage" ] +# +# source_set("libfuzzer") { +# sources = [ +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerCrossOver.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerDataFlowTrace.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerDriver.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtFunctionsDlsym.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWeak.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtFunctionsWindows.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerExtraCounters.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerFork.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerIO.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOPosix.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerLoop.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerMain.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerMerge.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerMutate.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerSHA1.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerTracePC.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtil.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilDarwin.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilFuchsia.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp", +# "//third_party/llvm-project/compiler-rt/lib/fuzzer/FuzzerUtilPosix.cpp", +# ] +# +# configs -= fuzzing_engine_remove_configs +# configs += fuzzing_engine_add_configs +# } +# +# if (use_afl) { +# source_set("afl_driver") { +# sources = [ "src/afl/afl_driver.cpp" ] +# +# configs -= fuzzing_engine_remove_configs +# configs += fuzzing_engine_add_configs +# } +# } -- Gitee