-
Notifications
You must be signed in to change notification settings - Fork 105
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
KnownLayout::validate_cast #349
KnownLayout::validate_cast #349
Conversation
bc5ca1d
to
f3f998e
Compare
547c468
to
f72320b
Compare
f72320b
to
da9e996
Compare
ed49647
to
90bee71
Compare
@jswrenn Another thing to call out: I still need to determine whether there are I think the answer is no: Given an address/length of a sound allocation (ie, one that safe Rust could produce):
Those are the preconditions to the pointer That's certainly consistent with the use in the |
5159709
to
80c12cf
Compare
80c12cf
to
2c9e7f1
Compare
This method is a core primitive that other parts of the codebase can build on to validate casts and compute the appropriate pointer metadata which should result from those casts. Future commits will build on top of this one to make use of it. Co-authored-by: Jack Wrenn <jswrenn@amazon.com>
2c9e7f1
to
bbf9603
Compare
This method is a core primitive that other parts of the codebase can build on to validate casts and compute the appropriate pointer metadata which should result from those casts. Future commits will build on top of this one to make use of it.