Merge pull request #749 from wasmerio/nlewycky/fuzz-cleanup

cargo fmt + adjust comment.
This commit is contained in:
Syrus Akbary 2019-09-03 15:33:57 -07:00 committed by GitHub
commit e98ac29b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 17 deletions

View File

@ -1,11 +1,9 @@
#![no_main] #![no_main]
#[macro_use] extern crate libfuzzer_sys; #[macro_use]
extern crate libfuzzer_sys;
extern crate wasmer_runtime; extern crate wasmer_runtime;
use wasmer_runtime::{ use wasmer_runtime::{imports, instantiate};
instantiate,
imports,
};
fuzz_target!(|data: &[u8]| { fuzz_target!(|data: &[u8]| {
let import_object = imports! {}; let import_object = imports! {};

View File

@ -1,19 +1,20 @@
#![no_main] #![no_main]
#[macro_use] extern crate libfuzzer_sys; #[macro_use]
extern crate libfuzzer_sys;
extern crate wasmer_runtime_core;
extern crate wasmer; extern crate wasmer;
extern crate wasmer_runtime_core;
use wasmer_runtime_core::{ use wasmer_runtime_core::backend::Features;
backend::{Features},
};
fuzz_target!(|data: &[u8]| { fuzz_target!(|data: &[u8]| {
let _ = wasmer::utils::is_wasm_binary(data); let _ = wasmer::utils::is_wasm_binary(data);
let _ = wasmer_runtime_core::validate_and_report_errors_with_features( let _ = wasmer_runtime_core::validate_and_report_errors_with_features(
&data, &data,
Features { Features {
// modify those values to explore additionnal part of wasmer // Modify these values to explore additional parts of wasmer.
simd: false, threads: false, }, simd: false,
threads: false,
},
); );
}); });