alexcrichton opened PR #8410 from alexcrichton:fix-externref-use-after-free
to bytecodealliance:main
:
This fixes a typo in the
externref.c
example where a deallocatedwasmtime_val_t
was used by accident. Additionally this introduces scoping to prevent this from arising again.<!--
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 #8410.
alexcrichton requested wasmtime-core-reviewers for a review on PR #8410.
alexcrichton updated PR #8410.
fitzgen submitted PR review.
fitzgen submitted PR review.
fitzgen created PR review comment:
This is now declared inside this block, but then reused in the other block and has
wasmtime_val_delete
called outside of the block. Can we move it up, out of this block then?
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Wait what how does this compile given this mistake...
alexcrichton submitted PR review.
alexcrichton created PR review comment:
Ah the answer is that it doesn't...
alexcrichton updated PR #8410.
alexcrichton has enabled auto merge for PR #8410.
alexcrichton merged PR #8410.
fitzgen submitted PR review.
fitzgen created PR review comment:
lol yeah I was wondering myself
Last updated: Dec 23 2024 at 12:05 UTC