fitzgen opened PR #5239 from rework-atomic-addr-validation
to main
:
Before, we would do a
heap_addr
to translate the given Wasm memory address into a native memory address and pass it into the libcall that implemented the atomic operation, which would then treat the address as a Wasm memory address and pass it tovalidate_atomic_addr
to be bounds checked a second time. This is a bit nonsensical, as we are validating a native memory address as if it were a Wasm memory address.Now, we no longer do a
heap_addr
to translate the Wasm memory address to a native memory address. Instead, we pass the Wasm memory address to the libcall, and the libcall is responsible for doing the bounds check (by callingvalidate_atomic_addr
with the correct type of memory address now).<!--
Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
fitzgen requested abrown for a review on PR #5239.
fitzgen requested alexcrichton for a review on PR #5239.
abrown submitted PR review.
fitzgen merged PR #5239.
Last updated: Nov 22 2024 at 16:03 UTC