Skip to content

Commit

Permalink
fuzz: fix elichai's nits
Browse files Browse the repository at this point in the history
  • Loading branch information
apoelstra committed Dec 28, 2020
1 parent d1714ce commit 75d7177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contrib/test.sh
Expand Up @@ -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"

Expand Down
3 changes: 1 addition & 2 deletions secp256k1-sys/src/recovery.rs
Expand Up @@ -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
Expand Down

0 comments on commit 75d7177

Please sign in to comment.