waffle/fuzz/fuzz_targets/parse_ir.rs

10 lines
233 B
Rust
Raw Normal View History

#![no_main]
use libfuzzer_sys::fuzz_target;
2021-11-13 19:52:30 -06:00
use waffle::Module;
2021-11-13 19:52:30 -06:00
fuzz_target!(|module: wasm_smith::Module| {
2021-11-13 18:44:53 -06:00
let _ = env_logger::try_init();
2021-11-13 19:52:30 -06:00
let _parsed_module = Module::from_wasm_bytes(&module.to_bytes()[..]).unwrap();
});