aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-11-30 10:20:20 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2025-01-22 03:01:02 +0100
commite800ea0fdd4ecbe2e28867550a8c36715f3c5ea9 (patch)
treecc70cb1dc7b483e7fb49510c520452fb49bda8ee /src/Compilation.zig
parent97b97ae6202811e207196920018c3b9610957f90 (diff)
downloadzig-e800ea0fdd4ecbe2e28867550a8c36715f3c5ea9.tar.gz
zig-e800ea0fdd4ecbe2e28867550a8c36715f3c5ea9.zip
wasm: Add a check for zero length around uses of memory.copy/memory.fill.
Apparently the WebAssembly spec requires these instructions to trap if the computed memory access could be out of bounds, even if the length is zero. Really a rather bizarre design choice.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions