From 18744cde01bfdafacef1de33e3c73555ac940771 Mon Sep 17 00:00:00 2001 From: jonathanmetzman <31354670+jonathanmetzman@users.noreply.github.com> Date: Mon, 6 Feb 2023 21:19:45 -0500 Subject: [PATCH] Don't use -fsanitize=fuzzer-no-link with centipede (#9610) It's pointless and has these drawbacks: 1. It add useless instrumentation not used by centipede that slows down the target 2. It adds instrumentation that expects an implementation at link time (__sancov_lowest_stack) which can break projects builds. Fixes https://github.com/google/oss-fuzz/issues/9609 Related: https://github.com/google/oss-fuzz/issues/9299 https://github.com/google/oss-fuzz/issues/9583 --- infra/base-images/base-builder/compile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infra/base-images/base-builder/compile b/infra/base-images/base-builder/compile index 5144f4cc9326..0cbb21b4ea28 100755 --- a/infra/base-images/base-builder/compile +++ b/infra/base-images/base-builder/compile @@ -99,7 +99,7 @@ then fi # Don't need coverage instrumentation for engine-less, afl++ builds. -if [ $FUZZING_ENGINE = "none" ] || [ $FUZZING_ENGINE = "afl" ]; then +if [ $FUZZING_ENGINE = "none" ] || [ $FUZZING_ENGINE = "afl" ] || [ $FUZZING_ENGINE = "centipede" ] ; then export COVERAGE_FLAGS= fi