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 #121126: index out of bounds exceeds max value #123483

Closed
wants to merge 2 commits into from

Commits on Apr 4, 2024

  1. Fix rust-lang#121126: index out of bounds exceeds max value

    When indexing an array with an index (u32) that exceeds the maximum value allowed by FieldIdx (default: 0xFFFF_FF00), although the compiler would detect the error, it would also cause a panic, which is a bug.
    I fixed it by adding a verification before calling the FieldIdx::from_u32(idx) method.
    This check ensures that if the idx value is greater than the maximum allowed value, it returns Option::None, similar to how other functions handle errors during the call to the project method of type Value.
    c4rrao committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    44e66b6 View commit details
    Browse the repository at this point in the history

Commits on May 22, 2024

  1. Configuration menu
    Copy the full SHA
    57a5b75 View commit details
    Browse the repository at this point in the history