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

Assess the impact of rust-lang/rust#95295 #7

Open
yvt opened this issue Feb 17, 2023 · 0 comments
Open

Assess the impact of rust-lang/rust#95295 #7

yvt opened this issue Feb 17, 2023 · 0 comments

Comments

@yvt
Copy link
Owner

yvt commented Feb 17, 2023

rust-lang/rust#95295 has made it a library UB to pass a size that does not fit in isize toLayout::from_size_align_unchecked.

  • We might be able to take advantage of this to remove a few overflow checks. However, it should be kept in mind that Rust versions prior to 1.65.0 are unaffected.
  • We should review our own uses of Layout::from_size_align[_unchecked].
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant