diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-30 10:20:20 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-01-22 03:01:02 +0100 |
| commit | e800ea0fdd4ecbe2e28867550a8c36715f3c5ea9 (patch) | |
| tree | cc70cb1dc7b483e7fb49510c520452fb49bda8ee /src/Package/Module.zig | |
| parent | 97b97ae6202811e207196920018c3b9610957f90 (diff) | |
| download | zig-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/Package/Module.zig')
0 files changed, 0 insertions, 0 deletions
