Skip to content

Commit dd5b03c

Browse files
authored
Merge pull request #2349 from CosmWasm/co/disable-ref-types
[1.5] Disable reference types
2 parents ed37bff + 549ae20 commit dd5b03c

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ and this project adheres to
88

99
## [Unreleased]
1010

11+
### Changed
12+
13+
- cosmwasm-vm: Disable reference-types and bulk-memory proposals during
14+
validation. ([#2349])
15+
16+
[#2349]: https://github.com/CosmWasm/cosmwasm/pull/2349
17+
1118
## [1.5.9] - 2024-12-10
1219

1320
### Added

packages/vm/src/parsed_wasm.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,23 @@ pub struct ParsedWasm<'a> {
2323
impl<'a> ParsedWasm<'a> {
2424
pub fn parse(wasm: &'a [u8]) -> VmResult<Self> {
2525
let mut validator = Validator::new_with_features(WasmFeatures {
26+
mutable_global: true,
27+
saturating_float_to_int: true,
28+
sign_extension: true,
29+
multi_value: true,
2630
deterministic_only: true,
27-
component_model: false,
31+
32+
reference_types: false,
33+
bulk_memory: false,
2834
simd: false,
2935
relaxed_simd: false,
3036
threads: false,
37+
tail_call: false,
3138
multi_memory: false,
39+
exceptions: false,
3240
memory64: false,
33-
..Default::default()
41+
extended_const: false,
42+
component_model: false,
3443
});
3544

3645
let mut this = Self {

0 commit comments

Comments
 (0)