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

Miscompilation due to wrong provenance when capabilities compare equal #727

Closed
LawrenceEsswood opened this issue Feb 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LawrenceEsswood
Copy link

Example:

https://cheri-compiler-explorer.cl.cam.ac.uk/z/x4qW5n

The compiler seems to think that if two capabilities compare equal then they can be substituted for each other. This would only be true if they had the same provenance (which they legally might not have in C; if one was a pointer to the byte past the last in an object, and the other a pointer to the first byte in an adjacent one).

@LawrenceEsswood LawrenceEsswood added the bug Something isn't working label Feb 20, 2024
@jrtc27
Copy link
Member

jrtc27 commented Feb 20, 2024

#619 #561

@jrtc27 jrtc27 closed this as not planned Won't fix, can't repro, duplicate, stale Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants