From 4c7645051f4e28684ada79f14111f8fc51861ecc Mon Sep 17 00:00:00 2001 From: 0xFloki Date: Tue, 13 Jan 2026 15:15:30 +0100 Subject: [PATCH] Update oss-fuzz.sh --- oss-fuzz.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/oss-fuzz.sh b/oss-fuzz.sh index bd87665125..806aae85f8 100644 --- a/oss-fuzz.sh +++ b/oss-fuzz.sh @@ -59,10 +59,6 @@ function compile_fuzzer() { echo "Building $fuzzer" cd $path - # Install build dependencies - go mod tidy - go get github.com/holiman/gofuzz-shim/testing - if [[ $SANITIZER == *coverage* ]]; then coverbuild $path $function $fuzzer else @@ -82,6 +78,13 @@ function compile_fuzzer() { go install github.com/holiman/gofuzz-shim@latest repo=$GOPATH/src/github.com/ethereum/go-ethereum + +# Install build dependencies once for all fuzzers +pushd $repo >/dev/null +go mod tidy +go get github.com/holiman/gofuzz-shim/testing +popd >/dev/null + compile_fuzzer github.com/ethereum/go-ethereum/accounts/abi \ FuzzABI fuzzAbi \ $repo/accounts/abi/abifuzzer_test.go