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 simple strict provenance cases in analysis/test #699

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kkysen
Copy link
Contributor

@kkysen kkysen commented Oct 10, 2022

Fixes #682.

More specifically, it fixes the low-hanging fruit of achieving strict provenance by replacing 0 as *{const,mut} _ with std::ptr::null{,_mut}(). The real int-to-ptr instances where std::ptr::from_exposed_addr and ptr::expose_addr() should be used I've left as is, though, as 1) strict provenance is still unstable and 2) that's what we currently emit. But removing the 0 as *{const,mut} _ makes the miri output much easier to deal with.

@kkysen kkysen requested a review from aneksteind October 10, 2022 05:16
@kkysen kkysen force-pushed the kkysen/analysis-test-strict-provenance branch from 77a8271 to 46eca71 Compare October 10, 2022 07:16
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

Successfully merging this pull request may close these issues.

Fix int-to-ptr casts in analysis/test
1 participant