waffle/fuzz/fuzz_targets/parse_ir.rs
2021-11-13 14:38:28 -08:00

10 lines
210 B
Rust

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