diff --git a/CHANGELOG.md b/CHANGELOG.md index 5fc1abe1b..1dac43a04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,13 @@ and this project adheres to ## [Unreleased] +### Changed + +- cosmwasm-vm: Disable reference-types and bulk-memory proposals during + validation. ([#2349]) + +[#2349]: https://github.com/CosmWasm/cosmwasm/pull/2349 + ## [1.5.9] - 2024-12-10 ### Added diff --git a/packages/vm/src/parsed_wasm.rs b/packages/vm/src/parsed_wasm.rs index 37e504189..a323e1aab 100644 --- a/packages/vm/src/parsed_wasm.rs +++ b/packages/vm/src/parsed_wasm.rs @@ -23,14 +23,23 @@ pub struct ParsedWasm<'a> { impl<'a> ParsedWasm<'a> { pub fn parse(wasm: &'a [u8]) -> VmResult { let mut validator = Validator::new_with_features(WasmFeatures { + mutable_global: true, + saturating_float_to_int: true, + sign_extension: true, + multi_value: true, deterministic_only: true, - component_model: false, + + reference_types: false, + bulk_memory: false, simd: false, relaxed_simd: false, threads: false, + tail_call: false, multi_memory: false, + exceptions: false, memory64: false, - ..Default::default() + extended_const: false, + component_model: false, }); let mut this = Self {