wasmi/fuzz/fuzz_targets/load.rs

10 lines
213 B
Rust

#![no_main]
#[macro_use]
extern crate libfuzzer_sys;
extern crate wasmi;
fuzz_target!(|data: &[u8]| {
// Just check if loading some arbitrary buffer doesn't panic.
let _ = wasmi::Module::from_buffer(data);
});