From a441e304d948a9e04a2394c5065e17cf80dc22ae Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Tue, 17 Oct 2023 11:26:14 +0200 Subject: [PATCH] oss-fuzz: try fixing build --- oss-fuzz.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oss-fuzz.sh b/oss-fuzz.sh index 7bc1daf016..405ebb87e2 100644 --- a/oss-fuzz.sh +++ b/oss-fuzz.sh @@ -74,8 +74,8 @@ function compile_fuzzer() { go install github.com/AdamKorcz/go-118-fuzz-build@latest go get github.com/AdamKorcz/go-118-fuzz-build/testing - # 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 ] + # 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 ] then build_native_go_fuzzer $fuzzer $function $path else