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

Strengthen soundness proof for size_of_val_raw #1574

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Commits on Aug 6, 2024

  1. Strengthen soundness proof for size_of_val_raw

    Previously, we needed to rely on the fact that the instance of any valid
    Rust type with 0 elements has a size (in number of bytes) which is not
    greater than `isize::MAX`. Providing this as a guarantee turned out to
    be controversial. [1]
    
    This was made possible by rust-lang/rust#126152.
    
    [1] rust-lang/unsafe-code-guidelines#465 (comment)
    joshlf committed Aug 6, 2024
    Configuration menu
    Copy the full SHA
    987c34a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d5ab566 View commit details
    Browse the repository at this point in the history