Stream: git-wasmtime

Topic: wasmtime / PR #3846 Fix image reuse with multi-memory images


view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2022 at 21:53):

alexcrichton opened PR #3846 from maybe-multi-memory-bug to main:

This commit fixes a potential issue where the fast-path instantiate in
MemoryImageSlot where when the previous image is compared against the
new image it only performed file descriptor equality, but nowadays with
loading images from *.cwasm files there might be multiple images in
the same file so the offsets also need to be considered. I think this
isn't really easy to hit today, it would require combining both module
linking and multi-memory which gets into the realm of being pretty
esoteric so I haven't added a test case here for this.

<!--

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 (Feb 23 2022 at 21:53):

alexcrichton requested cfallin for a review on PR #3846.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2022 at 22:34):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Feb 23 2022 at 22:41):

alexcrichton merged PR #3846.


Last updated: Oct 23 2024 at 20:03 UTC