mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 00:00:49 +00:00
Merge pull request #749 from wasmerio/nlewycky/fuzz-cleanup
cargo fmt + adjust comment.
This commit is contained in:
commit
e98ac29b32
@ -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! {};
|
||||
|
@ -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,
|
||||
},
|
||||
);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user