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

Update aws_byte_buf_is_bounded to include a null check #642

Open
adpaco-aws opened this issue Nov 27, 2020 · 1 comment
Open

Update aws_byte_buf_is_bounded to include a null check #642

adpaco-aws opened this issue Nov 27, 2020 · 1 comment
Labels
cbmc CBMC proof related work

Comments

@adpaco-aws
Copy link
Collaborator

This would avoid having the following code in proofs:

    __CPROVER_assume(buf1 != NULL);
    __CPROVER_assume(aws_byte_buf_is_bounded(buf1, MAX_BUFFER_SIZE));
    ensure_byte_buf_has_allocated_buffer_member(buf1);
    __CPROVER_assume(aws_byte_buf_is_valid(buf1));

by removing the first line (which should be done in aws_byte_buf_is_bounded in any case)

@adpaco-aws adpaco-aws added the cbmc CBMC proof related work label Nov 27, 2020
@feliperodri
Copy link
Collaborator

@adpaco-aws This issue should be moved to AWS C Common. Then we just need to update the version of the submodule here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cbmc CBMC proof related work
Projects
None yet
Development

No branches or pull requests

2 participants