mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-07 12:30:45 +00:00
23 lines
651 B
Bash
Executable File
23 lines
651 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
export FUZZ_ROOT="github.com/tendermint/tendermint"
|
|
|
|
build_go_fuzzer() {
|
|
local function="$1"
|
|
local fuzzer="$2"
|
|
|
|
gotip run github.com/orijtech/otils/corpus2ossfuzz@latest -o "$OUT"/"$fuzzer"_seed_corpus.zip -corpus test/fuzz/tests/testdata/fuzz/"$function"
|
|
compile_native_go_fuzzer "$FUZZ_ROOT"/test/fuzz/tests "$function" "$fuzzer"
|
|
}
|
|
|
|
gotip get github.com/AdamKorcz/go-118-fuzz-build/utils
|
|
gotip get github.com/prometheus/common/expfmt@v0.32.1
|
|
|
|
build_go_fuzzer FuzzP2PSecretConnection fuzz_p2p_secretconnection
|
|
|
|
build_go_fuzzer FuzzMempool fuzz_mempool
|
|
|
|
build_go_fuzzer FuzzRPCJSONRPCServer fuzz_rpc_jsonrpc_server
|