bytecodealliance / wasmtime

A fast and secure runtime for WebAssembly
https://wasmtime.dev/
Apache License 2.0
14.82k stars 1.23k forks source link

Force some more permission checks with 0-length writes #8822

Closed alexcrichton closed 2 weeks ago

alexcrichton commented 2 weeks ago

When a 0-length write is performed try to send the write all the way to the underlying file descriptor to at least check that it's valid to write.

Closes #8818

alexcrichton commented 2 weeks ago

Looks like the error differs on Windows and Linux. For now I've just updated the test to accept both errors.