alexcrichton opened PR #13079 from alexcrichton:refactor-handle-table-slightly to bytecodealliance:main:
This commit refactors the handle table accessible to components to remove a theoretical bug where when the table is full of elements it can get in a slightly weird where slots get allocated but traps are returned. This commit updates the modification of the table to happen only after the bounds-check is performed to ensure that once a table is full it's never extended any further.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested fitzgen for a review on PR #13079.
alexcrichton requested wasmtime-core-reviewers for a review on PR #13079.
fitzgen submitted PR review.
fitzgen added PR #13079 Refactor HandleTable::insert slightly to the merge queue.
fitzgen merged PR #13079.
fitzgen removed PR #13079 Refactor HandleTable::insert slightly from the merge queue.
Last updated: May 03 2026 at 22:13 UTC