Skip to content

Commit 75d7177

Browse files
committed
fuzz: fix elichai's nits
1 parent d1714ce commit 75d7177

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

contrib/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ if [ "$DO_FEATURE_MATRIX" = true ]; then
3434
done
3535

3636
# Other combos
37-
RUSTFLAGS='--cfg=rust_secp_fuzz' cargo test --all
38-
RUSTFLAGS='--cfg=rust_secp_fuzz' cargo test --all --features="$FEATURES"
37+
RUSTFLAGS='--cfg=rust_secp_fuzz' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all
38+
RUSTFLAGS='--cfg=rust_secp_fuzz' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all --features="$FEATURES"
3939
cargo test --all --features="rand rand-std"
4040
cargo test --all --features="rand serde"
4141

secp256k1-sys/src/recovery.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,8 @@ mod fuzz_dummy {
118118
) -> c_int {
119119
let sig_sl = slice::from_raw_parts(sig as *const u8, 65);
120120
let msg_sl = slice::from_raw_parts(msg32 as *const u8, 32);
121-
println!("HMM0");
122121

123-
if sig_sl[64] > 4 {
122+
if sig_sl[64] >= 4 {
124123
return 0;
125124
}
126125
// Pull the original pk out of the siganture

0 commit comments

Comments
 (0)