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

Bounds checking for pointer dereferences and array subscripts: update test #472

Merged
merged 2 commits into from
Sep 7, 2021

Conversation

kkjeer
Copy link
Contributor

@kkjeer kkjeer commented Sep 1, 2021

This PR updates some expected error messages to reflect the behavior in checkedc-clang/1176: for a pointer dereference or array subscript with target bounds, bounds validation uses the existing framework in UpdateAfterAssignment and ValidateBoundsContext to validate these expressions. This means that the error messages emitted for pointer dereferences or array subscripts whose inferred bounds are unknown have been updated to be consistent with the error messages for checking variables and member expressions, so the expected error messages in the test file bounds_decl_checking.c are updated.

Copy link
Contributor

@sulekhark sulekhark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

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.

2 participants