Severity |
|
Remote |
|
Type |
- |
Unknown |
+ |
Incorrect calculation |
|
Description |
+ |
In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait. |
|
References |
+ |
https://github.com/rust-lang/rust/issues/82291 |
+ |
https://github.com/rust-lang/rust/pull/82292 |
+ |
https://github.com/rust-lang/rust/commit/1d5b2dc945124c619ebb3641c096c063ca8ca1e5 |
|
Notes |
|