Skip to content

Commit

Permalink
wasi: raise a trap on out-of-range memory access
Browse files Browse the repository at this point in the history
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
yamt committed Jan 14, 2023
1 parent 54c1773 commit aa5ca2a
Showing 1 changed file with 272 additions and 150 deletions.
Loading

0 comments on commit aa5ca2a

Please sign in to comment.