Skip to content

winch: Fix a host panic when executing table.fill#13010

Merged
cfallin merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-winch-table-fill
Apr 9, 2026
Merged

winch: Fix a host panic when executing table.fill#13010
cfallin merged 1 commit intobytecodealliance:mainfrom
alexcrichton:fix-winch-table-fill

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

Note: this is a fix for GHSA-q49f-xg75-m9xw

This commit fixes a possible panic when a Winch-compiled module executes the table.fill instruction. Refactoring in #11254 updated Cranelift but forgot to update Winch meaning that Winch's indices were still using the module-level indices instead of the DefinedTableIndex space. This adds some tests and updates Winch's translation to use preexisting helpers.

This commit fixes a possible panic when a Winch-compiled module executes
the `table.fill` instruction. Refactoring in bytecodealliance#11254 updated Cranelift
but forgot to update Winch meaning that Winch's indices were still using
the module-level indices instead of the `DefinedTableIndex` space. This
adds some tests and updates Winch's translation to use preexisting
helpers.
@alexcrichton alexcrichton requested review from a team as code owners April 9, 2026 18:49
@alexcrichton alexcrichton requested review from cfallin and removed request for a team April 9, 2026 18:49
@cfallin cfallin enabled auto-merge April 9, 2026 18:54
@cfallin cfallin added this pull request to the merge queue Apr 9, 2026
Merged via the queue into bytecodealliance:main with commit f89d910 Apr 9, 2026
48 checks passed
@alexcrichton alexcrichton deleted the fix-winch-table-fill branch April 9, 2026 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants