This commit is contained in:
Martin Holst Swende 2023-11-05 19:10:14 +01:00
parent 62a0b20b6c
commit a89885f232
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -51,8 +51,8 @@ DOG
function compile_fuzzer() { function compile_fuzzer() {
package=$1 package=$1
function=$2 function=$2
file=$3 fuzzer=$3
fuzzer=$4 file=$4
path=$GOPATH/src/$package path=$GOPATH/src/$package
@ -82,186 +82,136 @@ 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
# compile_fuzzer github.com/ethereum/go-ethereum/accounts/abi \ compile_fuzzer github.com/ethereum/go-ethereum/accounts/abi \
# FuzzABI \ FuzzABI fuzzAbi \
# $repo/accounts/abi/abifuzzer_test.go \ $repo/accounts/abi/abifuzzer_test.go
# fuzzAbi
# compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil \
# # compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil FuzzEncoder fuzzBitutilEncoder FuzzEncoder fuzzBitutilEncoder \
# compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil \ $repo/common/bitutil/compress_test.go
# FuzzEncoder \
# $repo/common/bitutil/compress_test.go \ compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil \
# fuzzBitutilEncoder FuzzDecoder fuzzBitutilDecoder \
# $repo/common/bitutil/compress_test.go
# # compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil FuzzDecoder fuzzBitutilDecoder
# compile_fuzzer github.com/ethereum/go-ethereum/common/bitutil \ compile_fuzzer github.com/ethereum/go-ethereum/core/vm/runtime \
# FuzzDecoder \ FuzzVmRuntime fuzzVmRuntime\
# $repo/common/bitutil/compress_test.go \ $repo/core/vm/runtime/runtime_fuzz_test.go
# fuzzBitutilDecoder
# compile_fuzzer github.com/ethereum/go-ethereum/core/vm \
# # compile_fuzzer github.com/ethereum/go-ethereum/core/vm/runtime FuzzVmRuntime fuzzVmRuntime FuzzPrecompiledContracts fuzzPrecompiledContracts\
# compile_fuzzer github.com/ethereum/go-ethereum/core/vm/runtime \ $repo/core/vm/contracts_fuzz_test.go
# FuzzVmRuntime \
# $repo/core/vm/runtime/runtime_fuzz_test.go \ compile_fuzzer github.com/ethereum/go-ethereum/core/types \
# fuzzVmRuntime FuzzRLP fuzzRlp \
# $repo/core/types/rlp_fuzzer_test.go
# # compile_fuzzer github.com/ethereum/go-ethereum/core/vm FuzzPrecompiledContracts fuzzPrecompiledContracts
# compile_fuzzer github.com/ethereum/go-ethereum/core/vm \ compile_fuzzer github.com/ethereum/go-ethereum/crypto/blake2b \
# FuzzPrecompiledContracts \ Fuzz fuzzBlake2b \
# $repo/core/vm/contracts_fuzz_test.go \ $repo/crypto/blake2b/blake2b_f_fuzz_test.go
# fuzzPrecompiledContracts
# compile_fuzzer github.com/ethereum/go-ethereum/accounts/keystore \
# # compile_fuzzer github.com/ethereum/go-ethereum/core/types FuzzRLP fuzzRlp FuzzPassword fuzzKeystore \
# compile_fuzzer github.com/ethereum/go-ethereum/core/types \ $repo/accounts/keystore/keystore_fuzzing_test.go
# FuzzRLP \
# $repo/core/types/rlp_fuzzer_test.go \ pkg=$repo/trie/
# fuzzRlp compile_fuzzer github.com/ethereum/go-ethereum/trie \
# FuzzTrie fuzzTrie \
# #compile_fuzzer github.com/ethereum/go-ethereum/crypto/blake2b Fuzz fuzzBlake2b $pkg/trie_test.go,$pkg/database_test.go,$pkg/tracer_test.go,$pkg/proof_test.go,$pkg/iterator_test.go,$pkg/sync_test.go
# compile_fuzzer github.com/ethereum/go-ethereum/crypto/blake2b \
# Fuzz \ compile_fuzzer github.com/ethereum/go-ethereum/trie \
# $repo/crypto/blake2b/blake2b_f_fuzz_test.go \ FuzzStackTrie fuzzStackTrie \
# fuzzBlake2b $pkg/stacktrie_fuzzer_test.go,$pkg/iterator_test.go,$pkg/trie_test.go,$pkg/database_test.go,$pkg/tracer_test.go,$pkg/proof_test.go,$pkg/sync_test.go
#
# #compile_fuzzer github.com/ethereum/go-ethereum/accounts/keystore FuzzPassword fuzzKeystore #compile_fuzzer tests/fuzzers/snap FuzzARange fuzz_account_range
# compile_fuzzer github.com/ethereum/go-ethereum/accounts/keystore \ compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \
# FuzzPassword \ FuzzARange fuzz_account_range \
# $repo/accounts/keystore/keystore_fuzzing_test.go \ $repo/eth/protocols/snap/handler_fuzzing_test.go
# fuzzKeystore
# # compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \
# #compile_fuzzer github.com/ethereum/go-ethereum/trie FuzzTrie fuzzTrie FuzzSRange fuzz_storage_range \
# pkg=$repo/trie/ $repo/eth/protocols/snap/handler_fuzzing_test.go
# compile_fuzzer github.com/ethereum/go-ethereum/trie \
# FuzzTrie \ compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \
# $pkg/trie_test.go,$pkg/database_test.go,$pkg/tracer_test.go,$pkg/proof_test.go,$pkg/iterator_test.go,$pkg/sync_test.go \ FuzzByteCodes fuzz_byte_codes \
# fuzzTrie $repo/eth/protocols/snap/handler_fuzzing_test.go
#
# #compile_fuzzer github.com/ethereum/go-ethereum/trie FuzzStackTrie fuzzStackTrie compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \
# compile_fuzzer github.com/ethereum/go-ethereum/trie \ FuzzTrieNodes fuzz_trie_nodes\
# FuzzStackTrie \ $repo/eth/protocols/snap/handler_fuzzing_test.go
# $pkg/stacktrie_fuzzer_test.go,$pkg/iterator_test.go,$pkg/trie_test.go,$pkg/database_test.go,$pkg/tracer_test.go,$pkg/proof_test.go,$pkg/sync_test.go \
# fuzzStackTrie compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \
# FuzzAdd fuzzBn256Add\
# #compile_fuzzer tests/fuzzers/snap FuzzARange fuzz_account_range $repo/tests/fuzzers/bn256/bn256_test.go
# compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \
# FuzzARange \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \
# $repo/eth/protocols/snap/handler_fuzzing_test.go \ FuzzMul fuzzBn256Mul \
# fuzz_account_range $repo/tests/fuzzers/bn256/bn256_test.go
#
# #compile_fuzzer tests/fuzzers/snap FuzzSRange fuzz_storage_range compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \
# compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \ FuzzPair fuzzBn256Pair \
# FuzzSRange \ $repo/tests/fuzzers/bn256/bn256_test.go
# $repo/eth/protocols/snap/handler_fuzzing_test.go \
# fuzz_storage_range compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/txfetcher \
# Fuzz fuzzTxfetcher \
# #compile_fuzzer tests/fuzzers/snap FuzzByteCodes fuzz_byte_codes $repo/tests/fuzzers/txfetcher/txfetcher_test.go
# compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \
# FuzzByteCodes \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# $repo/eth/protocols/snap/handler_fuzzing_test.go \ FuzzG1Add fuzz_g1_add\
# fuzz_byte_codes $repo/tests/fuzzers/bls12381/bls12381_test.go
# #compile_fuzzer tests/fuzzers/snap FuzzTrieNodes fuzz_trie_nodes
# compile_fuzzer github.com/ethereum/go-ethereum/eth/protocols/snap \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzTrieNodes \ FuzzG1Mul fuzz_g1_mul\
# $repo/eth/protocols/snap/handler_fuzzing_test.go \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# fuzz_trie_nodes
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzG1MultiExp fuzz_g1_multiexp \
# #compile_fuzzer tests/fuzzers/bn256 FuzzAdd fuzzBn256Add $repo/tests/fuzzers/bls12381/bls12381_test.go
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \
# FuzzAdd \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# $repo/tests/fuzzers/bn256/bn256_test.go \ FuzzG2Add fuzz_g2_add \
# fuzzBn256Add $repo/tests/fuzzers/bls12381/bls12381_test.go
#
# #compile_fuzzer tests/fuzzers/bn256 FuzzMul fuzzBn256Mul compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \ FuzzG2Mul fuzz_g2_mul\
# FuzzMul \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# $repo/tests/fuzzers/bn256/bn256_test.go \
# fuzzBn256Mul compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# #compile_fuzzer tests/fuzzers/bn256 FuzzPair fuzzBn256Pair FuzzG2MultiExp fuzz_g2_multiexp \
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bn256 \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# FuzzPair \
# $repo/tests/fuzzers/bn256/bn256_test.go \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# fuzzBn256Pair FuzzPairing fuzz_pairing \
# $repo/tests/fuzzers/bls12381/bls12381_test.go
# #compile_fuzzer tests/fuzzers/txfetcher Fuzz fuzzTxfetcher
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/txfetcher \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# Fuzz \ FuzzMapG1 fuzz_map_g1\
# $repo/tests/fuzzers/txfetcher/txfetcher_test.go \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# fuzzTxfetcher
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# #compile_fuzzer tests/fuzzers/bls12381 FuzzG1Add fuzz_g1_add FuzzMapG2 fuzz_map_g2 \
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# FuzzG1Add \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# fuzz_g1_add FuzzCrossG1Add fuzz_cross_g1_add \
# $repo/tests/fuzzers/bls12381/bls12381_test.go
# #compile_fuzzer tests/fuzzers/bls12381 FuzzG1Mul fuzz_g1_mul
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzG1Mul \ FuzzCrossG1MultiExp fuzz_cross_g1_multiexp \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# fuzz_g1_mul
# #compile_fuzzer tests/fuzzers/bls12381 FuzzG1MultiExp fuzz_g1_multiexp compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ FuzzCrossG2Add fuzz_cross_g2_add \
# FuzzG1MultiExp \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_g1_multiexp compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# #compile_fuzzer tests/fuzzers/bls12381 FuzzG2Add fuzz_g2_add FuzzCrossPairing fuzz_cross_pairing\
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \ $repo/tests/fuzzers/bls12381/bls12381_test.go
# FuzzG2Add \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_g2_add
# #compile_fuzzer tests/fuzzers/bls12381 FuzzG2Mul fuzz_g2_mul
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzG2Mul \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_g2_mul
# #compile_fuzzer tests/fuzzers/bls12381 FuzzG2MultiExp fuzz_g2_multiexp
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzG2MultiExp \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_g2_multiexp
# #compile_fuzzer tests/fuzzers/bls12381 FuzzPairing fuzz_pairing
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzPairing \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_pairing
# #compile_fuzzer tests/fuzzers/bls12381 FuzzMapG1 fuzz_map_g1
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzMapG1 \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_map_g1
# #compile_fuzzer tests/fuzzers/bls12381 FuzzMapG2 fuzz_map_g2
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzMapG2 \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_map_g2
#
# #compile_fuzzer tests/fuzzers/bls12381 FuzzCrossG1Add fuzz_cross_g1_add
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzCrossG1Add \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_cross_g1_add
# #compile_fuzzer tests/fuzzers/bls12381 FuzzCrossG1MultiExp fuzz_cross_g1_multiexp
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzCrossG1MultiExp \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_cross_g1_multiexp
# #compile_fuzzer tests/fuzzers/bls12381 FuzzCrossG2Add fuzz_cross_g2_add
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzCrossG2Add \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_cross_g2_add
# #compile_fuzzer tests/fuzzers/bls12381 FuzzCrossPairing fuzz_cross_pairing
# compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/bls12381 \
# FuzzCrossPairing \
# $repo/tests/fuzzers/bls12381/bls12381_test.go \
# fuzz_cross_pairing
#
#compile_fuzzer tests/fuzzers/secp256k1 Fuzz fuzzSecp256k1
compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/secp256k1 \ compile_fuzzer github.com/ethereum/go-ethereum/tests/fuzzers/secp256k1 \
Fuzz \ Fuzz fuzzSecp256k1\
$repo/tests/fuzzers/secp256k1/secp_test.go \ $repo/tests/fuzzers/secp256k1/secp_test.go
fuzzSecp256k1
#compile_fuzzer tests/fuzzers/vflux FuzzClientPool fuzzClientPool #compile_fuzzer tests/fuzzers/vflux FuzzClientPool fuzzClientPool
#compile_fuzzer tests/fuzzers/difficulty Fuzz fuzzDifficulty #compile_fuzzer tests/fuzzers/difficulty Fuzz fuzzDifficulty