misalcedo / tortuga

A CGI and WCGI server for HTTP/1.1
Apache License 2.0
7 stars 0 forks source link

Create a cleaner interface between the guest and host. #14

Closed misalcedo closed 4 years ago

misalcedo commented 4 years ago

The guest is the WebAssembly module instance that implements the Guest trait. The host is the tortuga runtime that send and receives messages on behalf of a guest.

This change defines the boundary between the guest and host as one where the host can copy arbitrary bytes into the guest and then trigger the guest to read said bytes.

The guest must treat the bytes as being tainted. Currently, the guest has no mechanism to determine if the host passed the correct address back to the guest.