waffle/fuzz/fuzz_targets/parse_ir.rs
2021-11-13 16:44:53 -08:00

11 lines
246 B
Rust

#![no_main]
use libfuzzer_sys::fuzz_target;
use waffle::frontend::wasm_to_ir;
use wasm_smith::Module;
fuzz_target!(|module: Module| {
let _ = env_logger::try_init();
let _parsed_module = wasm_to_ir(&module.to_bytes()[..]).unwrap();
});