Open Luukdegram opened 1 year ago
This is a tracking issue for upstream: https://github.com/llvm/llvm-project/issues/63755, and can only be closed once the upstream bug has been fixed and landed downstream in Zig.
As mentioned in #22108, this can be done with the LLVM 20 upgrade.
Zig Version
0.11.0-dev.3947+89396ff02
Steps to Reproduce and Observed Behavior
Given the following program and CLI input:
results in a program that traps:
This is due to Wasm's
memory.copy
instruction trapping when the source -or destination address is out-of-bounds regardless of the length operand.Expected Behavior
I expected zero-length memset/memcpy to result in a no-op and not trap.