-
Notifications
You must be signed in to change notification settings - Fork 274
Corner case in pointer-overflow-check #6631
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
Labels
aws
Bugs or features of importance to AWS CBMC users
aws-high
pending merge
soundness
Soundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.
Comments
4 tasks
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 2, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
3 tasks
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 3, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
tautschnig
added a commit
to tautschnig/cbmc
that referenced
this issue
Feb 5, 2022
Pointer arithmetic requires multiplication of the offset by the size of the base type (for any base type larger than 1 byte). Such a multiplication isn't introduced until the back-end, where no opportunity for adding properties exists anymore. Therefore, synthesize the multiplication to generate arithmetic overflow checks at the GOTO level. Fixes: diffblue#6631
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
aws
Bugs or features of importance to AWS CBMC users
aws-high
pending merge
soundness
Soundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.
CBMC version: 5.48
Operating system: OSX
Exact command line resulting in the issue:
cbmc --pointer-overflow-check test.c
What behaviour did you expect: Overflow detected
What happened instead:
The text was updated successfully, but these errors were encountered: