-
Notifications
You must be signed in to change notification settings - Fork 31
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
Access to unitialized data in read_from
#33
Comments
Hi! I've made a fast fix by initializing destination memory before calling Waiting for |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi. Nice library, thanks for putting effort into making this.
I think I've discovered an issue allowing use of uninitialized data from safe code in the
read_from
function:ringbuf/src/traits/producer.rs
Lines 122 to 149 in 447a156
The issue is that a (safe) implementation of
Read
can read the uninitialized data in the buffer. This test:Triggers this error when executing in Miri:
The text was updated successfully, but these errors were encountered: