Add fuzz targets for module instantiation.

This commit is contained in:
Dan Gohman
2019-01-03 11:48:05 -08:00
parent df7724ce2b
commit 747dbb23e7
4 changed files with 63 additions and 2 deletions

View File

@@ -14,7 +14,8 @@ cranelift-codegen = "0.26.0"
cranelift-wasm = "0.26.0"
cranelift-native = "0.26.0"
libfuzzer-sys = { git = "https://github.com/rust-fuzz/libfuzzer-sys.git" }
wasmparser = { version = "0.22.0", default-features = false }
wasmparser = { version = "0.23.0", default-features = false }
binaryen = "0.5.0"
[features]
default = ["wasmparser/core"]
@@ -26,3 +27,11 @@ members = ["."]
[[bin]]
name = "compile"
path = "fuzz_targets/compile.rs"
[[bin]]
name = "instantiate"
path = "fuzz_targets/instantiate.rs"
[[bin]]
name = "instantiate_translated"
path = "fuzz_targets/instantiate_translated.rs"