mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-23 05:31:32 +00:00
validate_wasm fuzzer
This commit is contained in:
19
fuzz/fuzz_targets/validate_wasm.rs
Normal file
19
fuzz/fuzz_targets/validate_wasm.rs
Normal file
@ -0,0 +1,19 @@
|
||||
#![no_main]
|
||||
#[macro_use] extern crate libfuzzer_sys;
|
||||
|
||||
extern crate wasmer_runtime_core;
|
||||
extern crate wasmer;
|
||||
|
||||
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, },
|
||||
);
|
||||
});
|
Reference in New Issue
Block a user