Skip to content

Commit

Permalink
Add v128 equality to mutate fuzzer (#830)
Browse files Browse the repository at this point in the history
Should fix a recent oss-fuzz issue where it found that simd turned on
but didn't have equality here.
  • Loading branch information
alexcrichton committed Nov 21, 2022
1 parent b70ae63 commit c280be6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuzz/fuzz_targets/mutate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,9 @@ mod eval {
let m = f64::from_bits(*m);
assert!(o == m || (o.is_nan() && m.is_nan()));
}
(wasmtime::Val::V128(o), wasmtime::Val::V128(m)) => {
assert_eq!(o, m)
}
(wasmtime::Val::ExternRef(o), wasmtime::Val::ExternRef(m)) => {
assert_eq!(o.is_none(), m.is_none())
}
Expand Down

0 comments on commit c280be6

Please sign in to comment.