-
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
Side effect handling in specialized zip implementation causes buffer overflow #82282
Labels
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
P-critical
Critical priority
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Comments
For the context, this causes a buffer overflow by violating the safety requirement of rust/library/core/src/iter/adapters/zip.rs Lines 384 to 406 in 0148b97
|
GuillaumeGomez
added
the
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
label
Feb 19, 2021
rustbot
added
the
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
label
Feb 19, 2021
jonas-schievink
added
the
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
label
Feb 19, 2021
Assigning |
hameerabbasi
added
P-critical
Critical priority
and removed
I-prioritize
Issue: Indicates that prioritization has been requested for this issue.
labels
Feb 19, 2021
m-ou-se
added a commit
to m-ou-se/rust
that referenced
this issue
Mar 5, 2021
Fix underflow in specialized ZipImpl::size_hint Fixes rust-lang#82282
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
P-critical
Critical priority
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
rust/library/core/src/iter/adapters/zip.rs
Lines 200 to 208 in 0148b97
rust/library/core/src/iter/adapters/zip.rs
Lines 214 to 218 in 0148b97
self.index
can be set to a value greater thanself.len
in this branch. This causes integer overflow insize_hint()
and lead to a buffer overflow.Playground Link that demonstrates segfault with safe Rust code.
The text was updated successfully, but these errors were encountered: