Skip to content

Commit

Permalink
cargo fmt + adjust comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewycky committed Sep 3, 2019
1 parent d54712f commit 4ce2e2c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
8 changes: 3 additions & 5 deletions fuzz/fuzz_targets/simple_instantiate.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
#![no_main]
#[macro_use] extern crate libfuzzer_sys;
#[macro_use]
extern crate libfuzzer_sys;
extern crate wasmer_runtime;

use wasmer_runtime::{
instantiate,
imports,
};
use wasmer_runtime::{imports, instantiate};

fuzz_target!(|data: &[u8]| {
let import_object = imports! {};
Expand Down
25 changes: 13 additions & 12 deletions fuzz/fuzz_targets/validate_wasm.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
#![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_runtime_core;

use wasmer_runtime_core::{
backend::{Features},
};
use wasmer_runtime_core::backend::Features;

fuzz_target!(|data: &[u8]| {
let _ = wasmer::utils::is_wasm_binary(data);
let _ = wasmer_runtime_core::validate_and_report_errors_with_features(
&data,
Features {
// modify those values to explore additionnal part of wasmer
simd: false, threads: false, },
);
let _ = wasmer::utils::is_wasm_binary(data);
let _ = wasmer_runtime_core::validate_and_report_errors_with_features(
&data,
Features {
// Modify these values to explore additional parts of wasmer.
simd: false,
threads: false,
},
);
});

0 comments on commit 4ce2e2c

Please sign in to comment.