mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
37718f949f
Move the length check to before using `index` with `ptr::add` to prevent an out of bounds pointer from being formed. Fixes #122760