-
Notifications
You must be signed in to change notification settings - Fork 277
Open
Labels
Pointer ModellingVersion 6Pull requests and issues requiring a major version bumpPull requests and issues requiring a major version bumpawsBugs or features of importance to AWS CBMC usersBugs or features of importance to AWS CBMC userssoundnessSoundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.Soundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.
Description
CBMC returns VERIFICATION SUCCESSFUL for the following program, although the assertion can fail.
void main()
{
int *x = malloc(sizeof(int));
free(x);
int *y = malloc(sizeof(int));
if(x == y) {
// should be reachable
assert(0);
}
free(y);
}
CBMC's object encoding assumes that malloc never returns the same address.
Metadata
Metadata
Labels
Pointer ModellingVersion 6Pull requests and issues requiring a major version bumpPull requests and issues requiring a major version bumpawsBugs or features of importance to AWS CBMC usersBugs or features of importance to AWS CBMC userssoundnessSoundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.Soundness bug? Review and add "aws" if it is, or remove "soundness" if it isn't.