Stream: git-wasmtime

Topic: wasmtime / PR #14085 [stack-switching] Fix type index con...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 18:02):

dhil opened PR #14085 from dhil:switch-type-index to bytecodealliance:main:

I came across this bug whilst working on fixing the interaction between GC and stack switching. I have hoisted it here as tiny self-contained PR.

The translation of switch would erroneously decompose a ModuleInternedTypeIndex and use its u32 representation to build a TypeIndex. The two index types map different spaces, consequently it is possible to cause a compiler crash (out of bounds on lookup) or worse a runtime crash (argument types mismatch).

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 18:02):

dhil requested alexcrichton for a review on PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 18:02):

dhil requested wasmtime-compiler-reviewers for a review on PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 18:02):

dhil requested wasmtime-core-reviewers for a review on PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 20:45):

:cross_mark: dhil closed without merge PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 20:45):

dhil reopened PR #14085 from dhil:switch-type-index to bytecodealliance:main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 06 2026 at 20:47):

dhil updated PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2026 at 16:59):

dhil updated PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2026 at 17:10):

:thumbs_up: alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2026 at 17:10):

alexcrichton added PR #14085 [stack-switching] Fix type index conflation in translation of switch to the merge queue

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2026 at 17:37):

:check: alexcrichton merged PR #14085.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 07 2026 at 17:37):

alexcrichton removed PR #14085 [stack-switching] Fix type index conflation in translation of switch from the merge queue


Last updated: Aug 30 2026 at 09:07 UTC