Closed
Description
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 than self.len
in this branch. This causes integer overflow in size_hint()
and lead to a buffer overflow.
Playground Link that demonstrates segfault with safe Rust code.