waffle/fuzz/fuzz_targets/parse_ir.rs

11 lines
289 B
Rust
Raw Normal View History

#![no_main]
use libfuzzer_sys::fuzz_target;
2023-02-16 18:20:54 -06:00
use waffle::{FrontendOptions, 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();
2023-02-16 18:20:54 -06:00
let _parsed_module =
Module::from_wasm_bytes(&module.to_bytes()[..], &FrontendOptions::default()).unwrap();
});