From 341575a73496c1c4fe49ee0060bca06e8b573c17 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Tue, 17 Oct 2023 11:08:20 +0200 Subject: [PATCH] oss-fuzz: try fixing build --- oss-fuzz.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/oss-fuzz.sh b/oss-fuzz.sh index d95f639a63..5a81255a3e 100644 --- a/oss-fuzz.sh +++ b/oss-fuzz.sh @@ -68,6 +68,7 @@ function compile_fuzzer() { fuzzer=$3 echo "Building $fuzzer" + cd $path # Test if file contains a line with "func $function" and "testing.F". if [ $(grep -r "func $function" $path | grep "testing.F" | wc -l) -eq 1 ] @@ -84,6 +85,7 @@ function compile_fuzzer() { cp $corpusfile $OUT/ echo "Found seed corpus: $corpusfile" fi + cd - } compile_fuzzer tests/fuzzers/bitutil Fuzz fuzzBitutilCompress