Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fd_fdstat_get returns invalid fs_flags #283

Open
TerrorJack opened this issue Oct 16, 2024 · 0 comments
Open

fd_fdstat_get returns invalid fs_flags #283

TerrorJack opened this issue Oct 16, 2024 · 0 comments

Comments

@TerrorJack
Copy link

According to

buf->fs_flags = r;
, fd_fdstat_get would return fs_flags directly from fcntl() call on a POSIX host. However, there's no translation logic to generate the fd flags that conform to https://github.com/WebAssembly/wasi-libc/blob/a05277a6803d99dc5f8d5c250a02cf37ff90882a/libc-bottom-half/headers/public/wasi/api.h#L896, so it's highly likely that an invalid fs_flags is passed to wasm code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant