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 36b6f16 commit c8c3062
Showing 1 changed file with 272 additions and 150 deletions.
Loading

0 comments on commit c8c3062

Please sign in to comment.