File tree 6 files changed +665
-621
lines changed
6 files changed +665
-621
lines changed Original file line number Diff line number Diff line change @@ -262,11 +262,12 @@ jobs:
262
262
sudo apt-get -y install build-essential binutils-dev libunwind-dev
263
263
- name : Pin the regex dependency
264
264
run : |
265
- cd fuzz && cargo update -p regex --precise "1.9.6" --verbose && cd ..
265
+ cd fuzz && cargo update -p regex --precise "1.9.6" --verbose
266
+ cd write-seeds && cargo update -p regex --precise "1.9.6" --verbose
266
267
- name : Sanity check fuzz targets on Rust ${{ env.TOOLCHAIN }}
267
268
run : |
268
269
cd fuzz
269
- RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always
270
+ RUSTFLAGS="--cfg=fuzzing --cfg=secp256k1_fuzz --cfg=hashes_fuzz" cargo test --verbose --color always --lib --bins
270
271
cargo clean
271
272
- name : Run fuzzers
272
273
run : cd fuzz && ./ci-fuzz.sh && cd ..
Original file line number Diff line number Diff line change @@ -13,10 +13,17 @@ rm *_target.rs
13
13
[ " $( git diff) " != " " ] && exit 1
14
14
popd
15
15
16
+ export RUSTFLAGS=" --cfg=secp256k1_fuzz --cfg=hashes_fuzz"
17
+
18
+ mkdir -p hfuzz_workspace/full_stack_target/input
19
+ pushd write-seeds
20
+ RUSTFLAGS=" $RUSTFLAGS --cfg=fuzzing" cargo run ../hfuzz_workspace/full_stack_target/input
21
+ popd
22
+
16
23
cargo install --color always --force honggfuzz --no-default-features
17
24
sed -i ' s/lto = true//' Cargo.toml
25
+ sed -i ' s/codegen-units = 1//' Cargo.toml
18
26
19
- export RUSTFLAGS=" --cfg=secp256k1_fuzz --cfg=hashes_fuzz"
20
27
export HFUZZ_BUILD_ARGS=" --features honggfuzz_fuzz"
21
28
22
29
cargo --color always hfuzz build
You can’t perform that action at this time.
0 commit comments