Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information