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

warning needed: non-trivial math on __intcap_t should produce a warning #667

Open
brooksdavis opened this issue Dec 1, 2022 · 0 comments
Labels
CHERI C semantics clang Clang C/C++ frontend issues enhancement New feature or request

Comments

@brooksdavis
Copy link
Member

Anything other than bit manipulation, addition, and subtraction is unlikely to work as expected if an __intcap_t contains a pointer due to going outside representable bounds.

@arichardson arichardson added enhancement New feature or request clang Clang C/C++ frontend issues CHERI C semantics labels Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CHERI C semantics clang Clang C/C++ frontend issues enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants