Skip to content

[reference-types] behavior of out-of-bound in table.fill #1779

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
12101111 opened this issue Aug 10, 2024 · 1 comment
Closed

[reference-types] behavior of out-of-bound in table.fill #1779

12101111 opened this issue Aug 10, 2024 · 1 comment

Comments

@12101111
Copy link

https://github.com/WebAssembly/spec/blob/main/proposals/reference-types/Overview.md

table.fill traps when range+length > size of the table, but only after filling range up to size (analoguous to memory.fill)

I think the documentation corresponds to the old behavior and has not been updated after WebAssembly/bulk-memory-operations#111

@rossberg
Copy link
Member

Please see the README: the proposal directory contains archived historical documents that are not updated. The only relevant source of truth is the spec itself, which specifies a bounds check before any write.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants