From fa5888c2ae5409b2f06355fbde2b052532b5526f Mon Sep 17 00:00:00 2001 From: Tamas K Lengyel Date: Fri, 12 Apr 2024 11:50:33 -0400 Subject: [PATCH] Enable coverage reporting on oss-fuzz --- oss-fuzz/build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/oss-fuzz/build.sh b/oss-fuzz/build.sh index df6266c..464fdaa 100755 --- a/oss-fuzz/build.sh +++ b/oss-fuzz/build.sh @@ -15,11 +15,18 @@ build_fuzzer() { inf=$2 seed=${3:-""} + if [ $SANITIZER == "coverage" -a -n "$COVERAGE_FLAGS" ]; then + coverage="true" + else + coverage="false" + fi + if [ ! -z $seed ]; then zip -j $OUT/${fuzzer}_seed_corpus.zip ${seed}/* fi python $SRC/hbfa-fl/HBFA/UefiHostTestTools/RunLibFuzzer.py -c manual -a X64 \ + -p $coverage \ -m $inf \ -o $WORK