mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
5c0ede0b42
Used to discover issue #558. We'll probably want to reconsider the default .gitignore of the artifacts and corpus directories. The fuzzer wastes a lot of time not having even a single exampel of a valid .wasm file to start with.
14 lines
248 B
Rust
14 lines
248 B
Rust
#![no_main]
|
|
#[macro_use] extern crate libfuzzer_sys;
|
|
extern crate wasmer_runtime;
|
|
|
|
use wasmer_runtime::{
|
|
instantiate,
|
|
imports,
|
|
};
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
let import_object = imports! {};
|
|
instantiate(data, &import_object);
|
|
});
|