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

CBMC Proof Failure Fixes #55

Merged
merged 16 commits into from
Aug 25, 2021
Merged

CBMC Proof Failure Fixes #55

merged 16 commits into from
Aug 25, 2021

Conversation

gshvang
Copy link
Contributor

@gshvang gshvang commented Aug 23, 2021

This PR updates the GenerateHTTPAuthHeader API CBMC Proof after the payload optimization changes.

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@@ -75,6 +75,7 @@ void harness()
__CPROVER_assume( pHttpParams->pathLen < MAX_URI_LEN );
__CPROVER_assume( pHttpParams->queryLen < MAX_QUERY_LEN );
__CPROVER_assume( pHttpParams->headersLen < MAX_HEADERS_LEN );
__CPROVER_assume( pHttpParams->pPayload != NULL );
Copy link
Contributor

Choose a reason for hiding this comment

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

The payload can be NULL, no? If it's NULL, then it just uses the empty string.

Copy link
Contributor Author

@gshvang gshvang Aug 23, 2021

Choose a reason for hiding this comment

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

Has it been handled in the code separately that if payload is NULL then we should substitute it with empty string or the application provided hash functions will take care of it?

Copy link
Contributor

Choose a reason for hiding this comment

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

I tested it locally before the release and the library should handle it

@gshvang gshvang requested a review from yourslab August 24, 2021 23:15
@gshvang gshvang merged commit 898a4ac into aws:main Aug 25, 2021
markrtuttle pushed a commit to markrtuttle/SigV4-for-AWS-IoT-embedded-sdk that referenced this pull request Sep 2, 2021
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.

3 participants