fuzz: fix elichai's nits

This commit is contained in:
Andrew Poelstra 2020-12-28 18:56:16 +00:00
parent d1714ce0ac
commit 75d717729a
2 changed files with 3 additions and 4 deletions

View File

@ -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"

View File

@ -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