Stream: git-wasmtime

Topic: wasmtime / PR #12897 Verify alignment of returned compone...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 18:20):

alexcrichton opened PR #12897 from alexcrichton:verify-string-alignment to bytecodealliance:main:

The lifting code erroneously forgot to check for this. There's no actual consequence to this in Wasmtime per-se, but it's required in the component model spec to trap, so a trap is added here.

<!--
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 (Mar 30 2026 at 18:20):

alexcrichton requested cfallin for a review on PR #12897.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 18:20):

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

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 18:51):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 18:51):

cfallin created PR review comment:

In order to avoid expensive ops that will be in the critical path of string-carrying APIs, could we use AND instead of an integer mod here (latter can be ~50 cycles or more)? Something like

debug_assert!(align.is_power_of_two());
if ptr & (align - 1) != 0 { ... }

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 19:36):

alexcrichton updated PR #12897.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 22:55):

github-actions[bot] added the label wasmtime:api on PR #12897.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:46):

alexcrichton updated PR #12897.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:46):

alexcrichton has enabled auto merge for PR #12897.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 30 2026 at 23:49):

alexcrichton updated PR #12897.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 00:03):

alexcrichton added PR #12897 Verify alignment of returned component-model strings to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 00:26):

alexcrichton removed PR #12897 Verify alignment of returned component-model strings from the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 31 2026 at 00:26):

alexcrichton merged PR #12897.


Last updated: Apr 12 2026 at 23:10 UTC