Skip to content

Extend runtime bounds checks to handle relative alignment. #328

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

Open
secure-sw-dev-bot opened this issue Jan 16, 2022 · 1 comment
Open

Comments

@secure-sw-dev-bot
Copy link

This issue was copied from checkedc/checkedc-clang#329


If the relative alignment of a pointer p with array_ptr is not an integral multiple of sizeof(T), we need to adjust the bounds check slightly (as described in the Checked C specification).

@secure-sw-dev-bot
Copy link
Author

Comment from @sulekhark:

#937 contains an example where the runtime bounds check needs to be adjusted to handle relative alignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant