Stream: git-wasmtime

Topic: wasmtime / PR #12022 Prevent using shared memories with `...


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

alexcrichton opened PR #12022 from alexcrichton:ghsa-main to bytecodealliance:main:

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 left to a future feature request for now.

<!--
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:38):

alexcrichton requested dicej for a review on PR #12022.

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

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

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

alexcrichton updated PR #12022.

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

tschneidereit submitted PR review.

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

alexcrichton merged PR #12022.


Last updated: Dec 06 2025 at 07:03 UTC