Skip to content

Fix simple strict provenance cases in analysis/test#699

Open
kkysen wants to merge 1 commit intomasterfrom
kkysen/analysis-test-strict-provenance
Open

Fix simple strict provenance cases in analysis/test#699
kkysen wants to merge 1 commit intomasterfrom
kkysen/analysis-test-strict-provenance

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 oinoom 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