cargo fmt + adjust comment.

This commit is contained in:
Nick Lewycky
2019-09-03 15:20:36 -07:00
parent d54712f73b
commit 4ce2e2c56d
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,
},
); );
}); });