Skip to content

Commit c87c3f3

Browse files
committed
Update CI fuzzing to use hard-coded full_stack seeds
This should materially improve our fuzzing coverage in CI.
1 parent 9f68f1b commit c87c3f3

File tree

5 files changed

+678
-619
lines changed

5 files changed

+678
-619
lines changed

fuzz/ci-fuzz.sh

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,17 @@ rm *_target.rs
1313
[ "$(git diff)" != "" ] && exit 1
1414
popd
1515

16+
export RUSTFLAGS="--cfg=secp256k1_fuzz --cfg=hashes_fuzz"
17+
18+
mkdir -p hongfuzz_workspace/full_stack_target/inputs
19+
pushd write-seeds
20+
RUSTFLAGS="$RUSTFLAGS --cfg=fuzzing" cargo run ../hongfuzz_workspace/full_stack_target/inputs
21+
popd
22+
1623
cargo install --color always --force honggfuzz --no-default-features
1724
sed -i 's/lto = true//' Cargo.toml
25+
sed -i 's/codegen-units = 1//' Cargo.toml
1826

19-
export RUSTFLAGS="--cfg=secp256k1_fuzz --cfg=hashes_fuzz"
2027
export HFUZZ_BUILD_ARGS="--features honggfuzz_fuzz"
2128

2229
cargo --color always hfuzz build

0 commit comments

Comments
 (0)