Working fuzz target

This commit is contained in:
Chris Fallin 2021-11-13 14:38:28 -08:00
parent 16a645e69b
commit c86347bb17
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ edition = "2018"
cargo-fuzz = true
[dependencies]
libfuzzer-sys = "0.3"
libfuzzer-sys = "0.4"
wasm-smith = "0.8"
[dependencies.waffle]

View file

@ -5,5 +5,5 @@ use waffle::frontend::wasm_to_ir;
use wasm_smith::Module;
fuzz_target!(|module: Module| {
let _parsed_module = wasm_to_ir(module.to_bytes()).unwrap();
let _parsed_module = wasm_to_ir(&module.to_bytes()[..]).unwrap();
});