1 Commits

Author SHA1 Message Date
Alex Crichton 615d697a0b Update preview1 to trap on misaligned pointers (#6776)
* Update preview1 to trap on misaligned pointers

Previously Wasmtime would return `EINVAL` to a guest but the upstream
documentation indicates that misaligned pointers should trap, so this
commit updates the alignment error to get converted into a trap rather
than than being returned to the guest.

* Change OOB errors to traps too

* Update preview2's implementation of preview1

* Handle some more errors
2023-08-02 22:15:32 +00:00