Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasi: raise a trap on out-of-range memory access
The previous logic was broken. It was returning EFAULT (which indicating a trap in memory_getptr) to the caller without processing the trap properly. This commit fixes it by distinguishing user-level error and host-level error. EFAULT for traps is a host-level error. cf. WebAssembly/WASI#505
- Loading branch information