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

c-scape's read has UB when the provided buffer is uninitialized #142

Closed
sunfishcode opened this issue Oct 7, 2022 · 1 comment
Closed

Comments

@sunfishcode
Copy link
Owner

c-scape's read family of functions use slice::from_raw_parts_mut to form a slice from the pointer and length passed to read. This has UB in the case where the buffer is uninitialized.

Rustix has an open issue tracking the need to provide safe Rust APIs for reading into uninitialized buffers.

@sunfishcode
Copy link
Owner Author

This is fixed in #143.

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