Stream: git-wasmtime

Topic: wasmtime / PR #4576 [abi_impl] Respect extension for inco...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 02 2022 at 14:44):

uweigand opened PR #4576 from extend-stackarg to main:

The gen_copy_arg_to_regs routine currently ignores argument extension
flags when loading incoming arguments. This causes a problem with
stack arguments on big-endian systems, since the argument address
points to the word on the stack as extended by the caller, but the
generated code only loads the inner type from the address, causing
it to receive an incorrect value. (This happens to work on little-
endian systems.)

Fixed by loading extended arguments as full words.

FYI @cfallin

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Aug 02 2022 at 20:54):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 02 2022 at 20:54):

cfallin merged PR #4576.


Last updated: Dec 23 2024 at 12:05 UTC