Files
wasmtime/fuzz/fuzz_targets/spectests.rs
Alex Crichton 6dde222992 Add a spec test fuzzer for Config (#1509)
* Add a spec test fuzzer for Config

This commit adds a new fuzzer which is intended to run on oss-fuzz. This
fuzzer creates and arbitrary `Config` which *should* pass spec tests and
then asserts that it does so. The goal here is to weed out any
accidental bugs in global configuration which could cause
non-spec-compliant behavior.

* Move implementation to `fuzzing` crate
2020-04-15 08:29:12 -05:00

10 lines
232 B
Rust

#![no_main]
use libfuzzer_sys::fuzz_target;
use wasmtime_fuzzing::generators::{Config, SpecTest};
fuzz_target!(|pair: (Config, SpecTest)| {
let (config, test) = pair;
wasmtime_fuzzing::oracles::spectest(config, test);
});