Skip to content

[34.0.0] Fix globals/tables holding their registered types#11104

Merged
alexcrichton merged 2 commits into
bytecodealliance:release-34.0.0from
alexcrichton:back34
Jun 24, 2025
Merged

[34.0.0] Fix globals/tables holding their registered types#11104
alexcrichton merged 2 commits into
bytecodealliance:release-34.0.0from
alexcrichton:back34

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

This is a backport of #11103 to the 34.0.0 release branch

This commit fixes an issue where host-created tables and globals with
concrete reference types previously did not keep their associated type
registrations alive for the duration of the table or global itself. This
could lead to runtime panics when reflecting on their type and
additionally lead to some type confusion about the global/table itself.
As described in bytecodealliance#11102 this is not a security issue, just a bug that
needs fixing.

Closes bytecodealliance#11102
@alexcrichton alexcrichton requested a review from a team as a code owner June 23, 2025 16:14
@alexcrichton alexcrichton requested review from dicej and removed request for a team June 23, 2025 16:14
@github-actions github-actions Bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jun 23, 2025
@alexcrichton alexcrichton merged commit f5a9490 into bytecodealliance:release-34.0.0 Jun 24, 2025
160 checks passed
@alexcrichton alexcrichton deleted the back34 branch June 24, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants