Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix OOB pointer formed in Vec::index #122761

Merged
merged 1 commit into from
Mar 20, 2024
Merged

Commits on Mar 20, 2024

  1. 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 rust-lang#122760
    jwong101 committed Mar 20, 2024
    Configuration menu
    Copy the full SHA
    37718f9 View commit details
    Browse the repository at this point in the history