1388d7a069
fix OOB pointer formed in Vec::index Move the length check to before using `index` with `ptr::add` to prevent an out of bounds pointer from being formed. Fixes #122760 |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |
1388d7a069
fix OOB pointer formed in Vec::index Move the length check to before using `index` with `ptr::add` to prevent an out of bounds pointer from being formed. Fixes #122760 |
||
---|---|---|
.. | ||
benches | ||
src | ||
tests | ||
Cargo.toml |