mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-16 22:22:13 +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]
|
#![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! {};
|
||||||
|
@ -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,
|
||||||
|
},
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user