Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory initialization when offset is negative (#7559)
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
- Loading branch information