mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-12 13:55:33 +00:00
21 lines
499 B
Rust
21 lines
499 B
Rust
#![no_main]
|
|
#[macro_use]
|
|
extern crate libfuzzer_sys;
|
|
|
|
extern crate wasmer_bin;
|
|
extern crate wasmer_runtime_core;
|
|
|
|
use wasmer_runtime_core::backend::Features;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
let _ = wasmer_bin::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,
|
|
},
|
|
);
|
|
});
|