Merge cranelift/wasmtime fuzzing

This commit is contained in:
Alex Crichton
2020-02-25 11:18:23 -08:00
parent 9fe459bf38
commit 3e2cdc3ded
9 changed files with 60 additions and 71 deletions

View File

@@ -0,0 +1,12 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use std::str;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = str::from_utf8(data) {
let options = cranelift_reader::ParseOptions::default();
let _ = cranelift_reader::parse_test(s, options);
}
});