fd_fdstat_set_rights
does not error when attempting to add rights to stdin/out/err
#7051
Labels
bug
Incorrect behavior in the current implementation that needs fixing
Test Case
Steps to Reproduce
Run the above WAT code with Wasmtime and print the error code. For example:
Expected Results
stdin
(fd value 0) starts with a fs_rights_base value of 2 (read). The above WAT snippet attempts to add a right to it by setting it to 3 (read + seek).According the preview1 spec for
fd_fdstat_set_rights
:So the expected exit status is 76 (notcapable).
Actual Results
The snippet exits with errno 0.
Versions and Environment
Wasmtime version or commit: v12.0.2
Operating system: Mac OSX Ventura 13.5.2
Architecture: amd64
Extra Info
This is not a security vulnerability because, in my limited testing, the right does not actually get updated.
The text was updated successfully, but these errors were encountered: