Skip to content

Extend runtime bounds checks to handle relative alignment. #329

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
dtarditi opened this issue Jun 20, 2017 · 1 comment
Open

Extend runtime bounds checks to handle relative alignment. #329

dtarditi opened this issue Jun 20, 2017 · 1 comment
Labels
work item This labels issues that are not exactly bugs but are about improvements.

Comments

@dtarditi
Copy link
Member

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).

@sulekhark
Copy link
Contributor

#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
Labels
work item This labels issues that are not exactly bugs but are about improvements.
Projects
None yet
Development

No branches or pull requests

2 participants