You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 3, 2021. It is now read-only.
Meaning of out-of-range zero-length 'memory.fill' / 'memory.copy' #11
What should happen when memory.fill/.copy are requested to process zero bytes, but the destination and/or source offsets are out of range? Should there be an out-of-range exception? Or should the operations be no-ops?
I'd vote for throwing an exception, on safety/correctness grounds.
@jfbastien, seconded. That would imply that these instructions trap when either source or destination end offset is out of bounds. That would match @julian-seward1's preference as well.
Activity
jfbastien commentedon Apr 25, 2018
I would advocate for the same behavior as for data segments. There was pretty extensive discussion here: WebAssembly/design#897
rossberg commentedon Apr 25, 2018
@jfbastien, seconded. That would imply that these instructions trap when either source or destination end offset is out of bounds. That would match @julian-seward1's preference as well.
Bug 1446930 - Wasm: basic (OOL) implementation of memory.fill and mem…
Clarify *.{init,copy,fill} w/ zero count
Clarify *.{init,copy,fill} w/ zero count (#48)
[wasm] 0-count is out-of-bounds for table.*
Bug 1446930 - Wasm: basic (OOL) implementation of memory.fill and mem…
Bug 1446930 - Wasm: basic (OOL) implementation of memory.fill and mem…
Bug 1446930 - Wasm: basic (OOL) implementation of memory.fill and mem…