Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix type interning during Wasm-to-CLIF translation #9374

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Oct 4, 2024

We were handling the case where we had fewer rec groups than types, in the case where a rec group defines multiple types, but were failing to handle the case when we have more rec groups than types due to empty rec groups.

The fix is to bound the loop by the number of types, not the number of rec groups.

We were handling the case where we had fewer rec groups than types, in the case
where a rec group defines multiple types, but were failing to handle the case
when we have more rec groups than types due to empty rec groups.

The fix is to bound the loop by the number of types, not the number of rec
groups.
@fitzgen fitzgen requested a review from a team as a code owner October 4, 2024 17:09
@fitzgen fitzgen requested review from elliottt and removed request for a team October 4, 2024 17:09
@fitzgen fitzgen added this pull request to the merge queue Oct 4, 2024
Merged via the queue into bytecodealliance:main with commit 79da845 Oct 4, 2024
39 checks passed
@fitzgen fitzgen deleted the fix-out-of-bounds-index-during-type-translation branch October 4, 2024 18:04
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants