Stream: git-wasmtime

Topic: wasmtime / PR #12017 [24.0.x] Prevent using shared memori...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 15:35):

alexcrichton opened PR #12017 from alexcrichton:release-24.0.0 to bytecodealliance:release-24.0.0:

This commit fixes a few issues where it was possible to represent a wasm shared linear memory with the wasmtime::Memory type. This is not sound because wasmtime::Memory provides safe Rust access to the bytes where that is not possible with wasm shared memories. Shared memories in Rust must be represented by SharedMemory, not wasmtime::Memory.

Specifically this commit prevents two vectors of this happening:

  1. Memory::new now requires that the memory type specified is non-shared. Instead SharedMemory::new must be used instead.

  2. Core dumps now skip over shared memories when iterating over all memories in the store. Supporting shared memories is a more invasive change and will happen on Wasmtime's main branch.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 15:35):

alexcrichton requested pchickey for a review on PR #12017.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 15:35):

alexcrichton requested wasmtime-core-reviewers for a review on PR #12017.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 15:35):

alexcrichton requested wasmtime-default-reviewers for a review on PR #12017.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 15:41):

alexcrichton updated PR #12017.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 15:58):

alexcrichton updated PR #12017.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 17:58):

alexcrichton commented on PR #12017:

Carrying over @pchickey's approval from the security advisory.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 11 2025 at 17:58):

alexcrichton merged PR #12017.


Last updated: Dec 06 2025 at 06:05 UTC