-
Notifications
You must be signed in to change notification settings - Fork 701
Fault on heap accesses around 0 #204
Copy link
Copy link
Open
Labels
Description
@titzer suggested that "a module may optionally define that out-of-bounds includes small indices close to 0". I like the idea, and I think we should figure out the details of how this works. C/C++ certainly care about this features, but other languages may not so it may be interesting to let the .wasm file control this.
- Should WebAssembly implementations be allowed to do something, and be required to document what they do?
- Should it be a property in the .wasm file?
- Something we specify through ELF?
- Should it be done manually through
mprotect, by the developer? Note that toolchains could do this automatically when generating_start.
In all cases, should we mandate that implementations provide information on smallest page size, so that this can be efficiently implemented through memory protection?
Reactions are currently unavailable