-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
vec_deque::Iter has unsound Debug implementation #53566
Comments
shepmaster
changed the title
vec_deque::Iter has unsound Debig implementation
vec_deque::Iter has unsound Debug implementation
Aug 21, 2018
MaloJaffre
added a commit
to MaloJaffre/rust
that referenced
this issue
Aug 22, 2018
This was assigned CVE-2019-1010299. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found by @MaloJaffre: The following code causes UB (not observable through crashes, but still):
This will create a
VecDeque
ring with capacity 8, then turn that into a slice forIter
, and then print that entire slice. Run it in Miri to see for yourself (Miri is in the "tools" menu).The text was updated successfully, but these errors were encountered: