diff --git a/contrib/test.sh b/contrib/test.sh index 5f9203d14..dd8430eef 100755 --- a/contrib/test.sh +++ b/contrib/test.sh @@ -34,8 +34,8 @@ if [ "$DO_FEATURE_MATRIX" = true ]; then done # Other combos - RUSTFLAGS='--cfg=rust_secp_fuzz' cargo test --all - RUSTFLAGS='--cfg=rust_secp_fuzz' cargo test --all --features="$FEATURES" + RUSTFLAGS='--cfg=rust_secp_fuzz' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all + RUSTFLAGS='--cfg=rust_secp_fuzz' RUSTDOCFLAGS=$RUSTFLAGS cargo test --all --features="$FEATURES" cargo test --all --features="rand rand-std" cargo test --all --features="rand serde" diff --git a/secp256k1-sys/src/recovery.rs b/secp256k1-sys/src/recovery.rs index 683eef43a..dec4f7393 100644 --- a/secp256k1-sys/src/recovery.rs +++ b/secp256k1-sys/src/recovery.rs @@ -118,9 +118,8 @@ mod fuzz_dummy { ) -> c_int { let sig_sl = slice::from_raw_parts(sig as *const u8, 65); let msg_sl = slice::from_raw_parts(msg32 as *const u8, 32); - println!("HMM0"); - if sig_sl[64] > 4 { + if sig_sl[64] >= 4 { return 0; } // Pull the original pk out of the siganture