Stream: git-wasmtime

Topic: wasmtime / PR #7559 Fix memory initialization when offset...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 20 2023 at 15:09):

alexcrichton opened PR #7559 from alexcrichton:fix-cast to bytecodealliance:main:

This commit fixes a bug in initializing memory segments of 32-bit memories where if the offset was negative when viewed as a signed integer the offset was incorrectly sign-extended to a 64-bit value instead of zero-extended. This commit replaces an i32-to-u64 cast with an i32-to-u32 cast followed by a u32-to-u64 cast which performs the zero extend.

Closes #7558

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 20 2023 at 15:09):

alexcrichton requested pchickey for a review on PR #7559.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 20 2023 at 15:09):

alexcrichton requested wasmtime-core-reviewers for a review on PR #7559.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 20 2023 at 16:55):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 20 2023 at 18:39):

alexcrichton merged PR #7559.


Last updated: Nov 22 2024 at 16:03 UTC