Logo
Explore Help
Sign In
fluencelabs/wasmer
1
0
Fork 0
You've already forked wasmer
mirror of https://github.com/fluencelabs/wasmer synced 2025-05-11 18:17:14 +00:00
Code Issues Projects Releases Wiki Activity
wasmer/fuzz/fuzz_targets/simple_instantiate.rs

12 lines
237 B
Rust
Raw Normal View History

Initial commit of a fuzzer. Run with "cargo fuzz run simple_instantiate". 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.
2019-07-13 17:57:30 -07:00
#![no_main]
cargo fmt + adjust comment.
2019-09-03 15:20:36 -07:00
#[macro_use]
extern crate libfuzzer_sys;
Initial commit of a fuzzer. Run with "cargo fuzz run simple_instantiate". 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.
2019-07-13 17:57:30 -07:00
extern crate wasmer_runtime;
cargo fmt + adjust comment.
2019-09-03 15:20:36 -07:00
use wasmer_runtime::{imports, instantiate};
Initial commit of a fuzzer. Run with "cargo fuzz run simple_instantiate". 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.
2019-07-13 17:57:30 -07:00
fuzz_target!(|data: &[u8]| {
let import_object = imports! {};
instantiate(data, &import_object);
});
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 106ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API