mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-18 22:09:26 +00:00
Update oss-fuzz.sh
This commit is contained in:
parent
5a1990d1d8
commit
4c7645051f
1 changed files with 7 additions and 4 deletions
11
oss-fuzz.sh
11
oss-fuzz.sh
|
|
@ -59,10 +59,6 @@ function compile_fuzzer() {
|
||||||
echo "Building $fuzzer"
|
echo "Building $fuzzer"
|
||||||
cd $path
|
cd $path
|
||||||
|
|
||||||
# Install build dependencies
|
|
||||||
go mod tidy
|
|
||||||
go get github.com/holiman/gofuzz-shim/testing
|
|
||||||
|
|
||||||
if [[ $SANITIZER == *coverage* ]]; then
|
if [[ $SANITIZER == *coverage* ]]; then
|
||||||
coverbuild $path $function $fuzzer
|
coverbuild $path $function $fuzzer
|
||||||
else
|
else
|
||||||
|
|
@ -82,6 +78,13 @@ function compile_fuzzer() {
|
||||||
|
|
||||||
go install github.com/holiman/gofuzz-shim@latest
|
go install github.com/holiman/gofuzz-shim@latest
|
||||||
repo=$GOPATH/src/github.com/ethereum/go-ethereum
|
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 \
|
compile_fuzzer github.com/ethereum/go-ethereum/accounts/abi \
|
||||||
FuzzABI fuzzAbi \
|
FuzzABI fuzzAbi \
|
||||||
$repo/accounts/abi/abifuzzer_test.go
|
$repo/accounts/abi/abifuzzer_test.go
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue