Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[20.0.0] Fix use-after-free in externref example #8414

Merged
merged 1 commit into from
Apr 19, 2024

Conversation

alexcrichton
Copy link
Member

Backport of #8410

* Fix use-after-free in externref example

This fixes a typo in the `externref.c` example where a deallocated
`wasmtime_val_t` was used by accident. Additionally this introduces
scoping to prevent this from arising again.

* Run clang-format

* Fix compilation of C example
@alexcrichton alexcrichton requested a review from a team as a code owner April 19, 2024 18:29
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team April 19, 2024 18:29
@fitzgen fitzgen merged commit d15603a into bytecodealliance:release-20.0.0 Apr 19, 2024
43 checks passed
@alexcrichton alexcrichton deleted the back20 branch April 22, 2024 14:56
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