waffle/fuzz/fuzz_targets/parse_ir.rs
2023-02-16 16:20:54 -08:00

11 lines
289 B
Rust

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