diff options
| author | Joshua Wong <joshuawong@anticentri.st> | 2024-03-19 22:47:35 -0500 |
|---|---|---|
| committer | Joshua Wong <joshuawong@anticentri.st> | 2024-03-19 22:47:35 -0500 |
| commit | 37718f949fe5bef4bbfa4ee393c2abf022771ccb (patch) | |
| tree | 441e535b0712881f51f675ebd3d494f7883f7eb8 /compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp | |
| parent | a77c20c4b987e74eb1a867d21d1edb8035a11660 (diff) | |
| download | rust-37718f949fe5bef4bbfa4ee393c2abf022771ccb.tar.gz rust-37718f949fe5bef4bbfa4ee393c2abf022771ccb.zip | |
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
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/ArchiveWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
