wasmi/fuzz/fuzz_targets/load.rs

10 lines
213 B
Rust
Raw Normal View History

2018-01-24 18:32:46 +00:00
#![no_main]
#[macro_use]
extern crate libfuzzer_sys;
extern crate wasmi;
2018-01-24 18:32:46 +00:00
fuzz_target!(|data: &[u8]| {
2018-02-15 17:34:56 +00:00
// Just check if loading some arbitrary buffer doesn't panic.
let _ = wasmi::Module::from_buffer(data);
2018-01-24 18:32:46 +00:00
});