Stream: git-wasmtime

Topic: wasmtime / PR #4672 [fuzz] Fix order of arguments passed ...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 10 2022 at 13:43):

abrown edited PR #4672 from fix-4671 to main:

In #4671, the meta-differential fuzz target was finding errors when
running certain Wasm modules (specifically shr_s in that case).
@conrad-watt diagnosed the issue as a missing reversal in the operands
passed to the spec interpreter. This change fixes #4671 and adds an
additional unit test to keep it fixed.

<!--

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 10 2022 at 13:49):

conrad-watt created PR review comment:

Internally, the interpreter represents the value stack as a list in reverse order, so that popping from the stack is equivalent to taking the head of the list.

My tweaked version of the interpreter exposes an entrypoint function that assumes this reversal has already happened, hence the confusion. When I cut a new version of my interpreter, I can investigate if it makes sense to push the reversal down further, but an advantage of doing it this way is that the rev and map operations can be carried out simultaneously, which is more efficient.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 10 2022 at 13:49):

conrad-watt submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 10 2022 at 13:50):

conrad-watt edited PR review comment.

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

conrad-watt submitted PR review.

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

conrad-watt submitted PR review.

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

alexcrichton submitted PR review.

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

alexcrichton merged PR #4672.


Last updated: Oct 23 2024 at 20:03 UTC