From 2d7c2fba5f832ffd0832b8c16b8b5d11db6d0ac7 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 14 Dec 2020 13:39:38 -0600 Subject: [PATCH] Update wasm-smith (#2509) Brings in a few bug fixes for generating module-linking modules --- Cargo.lock | 4 ++-- crates/fuzzing/Cargo.toml | 2 +- crates/fuzzing/src/oracles.rs | 2 +- fuzz/Cargo.toml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 64237674ee..1de98625b0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2365,9 +2365,9 @@ dependencies = [ [[package]] name = "wasm-smith" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdd382e46cf44347f4d0c29122143cbab85cf248b9a8f680845c0239b6842a85" +checksum = "509904d9c4c4659ac238a3f27c3656dd6d3931697eddd4b0f32e335769c298d0" dependencies = [ "arbitrary", "leb128", diff --git a/crates/fuzzing/Cargo.toml b/crates/fuzzing/Cargo.toml index b0dd625c02..7120601b2e 100644 --- a/crates/fuzzing/Cargo.toml +++ b/crates/fuzzing/Cargo.toml @@ -16,7 +16,7 @@ wasmparser = "0.70" wasmprinter = "0.2.17" wasmtime = { path = "../wasmtime" } wasmtime-wast = { path = "../wast" } -wasm-smith = "0.2.0" +wasm-smith = "0.3.0" wasmi = "0.7.0" [dev-dependencies] diff --git a/crates/fuzzing/src/oracles.rs b/crates/fuzzing/src/oracles.rs index 2d11255f58..9f04dc44df 100644 --- a/crates/fuzzing/src/oracles.rs +++ b/crates/fuzzing/src/oracles.rs @@ -460,7 +460,7 @@ pub fn table_ops(config: crate::generators::Config, ops: crate::generators::tabl /// Configuration options for wasm-smith such that generated modules always /// conform to certain specifications. -#[derive(Default, Debug, Arbitrary)] +#[derive(Default, Debug, Arbitrary, Clone)] pub struct DifferentialWasmiModuleConfig; impl wasm_smith::Config for DifferentialWasmiModuleConfig { diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 6220bdcb91..73bd003e1e 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -17,7 +17,7 @@ target-lexicon = "0.11" peepmatic-fuzzing = { path = "../cranelift/peepmatic/crates/fuzzing", optional = true } wasmtime = { path = "../crates/wasmtime" } wasmtime-fuzzing = { path = "../crates/fuzzing" } -wasm-smith = "0.2.0" +wasm-smith = "0.3.0" [features] experimental_x64 = ["wasmtime-fuzzing/experimental_x64"]