-
Notifications
You must be signed in to change notification settings - Fork 742
libc-wasi: add missing pointer validations to socket functions #4611
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
Conversation
cf. bytecodealliance#4463 the fix for sock_addr_resolve is incomplete. cf. bytecodealliance#4610
lum1n0us
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code is fine, but I'm uncertain about the intention. While there's a possibility of being out of the sandbox, most pointers target local variables in guest language functions. Anyway, safety comes first, so I'm okay with merging it.
i'm not sure what you mean. |
malicious (or, innocent-but-buggy) guest programs can access host memory past the end of its linear memory. |
Can't argue with that. 😆 |
…odealliance#4611) cf. bytecodealliance#4463 the fix for sock_addr_resolve is incomplete. cf. bytecodealliance#4610
#4665) * libc-wasi: add missing pointer validations to socket functions (#4611) cf. #4463 the fix for sock_addr_resolve is incomplete. cf. #4610 * Sync from main branch - wasi_sock_recv doesn't use src_addr - check src_addr before coverting * CI: use windows-2022 image for now (#4633) github is currently rolling out windows-2025 image. for some reasons, the "path_symlink_trailing_slashes" test case in wasi testsuite fails on windows-2025 image. someone familar with windows need to investigate what was the key difference between 2022 and 2025. until that happens, this commit makes our CI use windows-2022 image. cf. #4632 actions/runner-images#12677 --------- Co-authored-by: YAMAMOTO Takashi <[email protected]>
…odealliance#4611) cf. bytecodealliance#4463 the fix for sock_addr_resolve is incomplete. cf. bytecodealliance#4610
cf. #4463
the fix for sock_addr_resolve is incomplete.
cf. #4610