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 CBMC proofs for llhttp #127

Merged
merged 5 commits into from
Feb 2, 2022
Merged

Conversation

muneebahmed10
Copy link
Contributor

@muneebahmed10 muneebahmed10 commented Jan 25, 2022

Description:
Updates the CBMC proofs to compile after the parser was changed from http-parser to llhttp. All tests pass, but some proofs may not have 100% coverage for some functions, which are covered by different proofs. The HTTPClient_Send and HTTPClient_ReadHeader proofs are the ones affected by the http-parser->llhttp change, and both have coverage equal or better than that of the main branch.

@muneebahmed10 muneebahmed10 marked this pull request as ready for review February 2, 2022 00:27
@@ -67,7 +66,7 @@ UNWINDSET += strncmp.0:5

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are all present in the main branch: https://d39z7xfr4hj3jh.cloudfront.net/final/4b7c2384-c743-404b-8e74-9eb0ab5e3b0a/artifacts/HTTPClient_Send/report/html/index.html. They're not a result of these changes. I planned to follow up in the CBMC chat, but I don't think it should block this PR going into dev.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Followed up with CBMC and there's an open issue for this: model-checking/cbmc-starter-kit#88

@@ -26,17 +26,17 @@
*/

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tested removing that unwindset and the test fails, so it is doing something despite what the warning indicates. I'll ask in the cbmc group.

@muneebahmed10 muneebahmed10 merged commit 1c94cde into FreeRTOS:dev Feb 2, 2022
@muneebahmed10 muneebahmed10 deleted the llhttp-cbmc branch February 2, 2022 21:07
aggarg added a commit that referenced this pull request Apr 7, 2022
* Replace http-parser with llhttp (#126)

* Add llhttp submodule

* Replace http-parser with llhttp in source

* Fix CI checks

* Fix unit tests 100% coverage

* Rename functions

* Disable strict mode

* Remove http-parser submodule

* Update CBMC proofs for llhttp (#127)

* Update CBMC proofs

* Update execute mocks

* Rename stub file

* Return error fields from stubs

* Remove unused variable (#128)

* Remove unused variable

* Void unused status code

* Address review comments

Signed-off-by: Gaurav Aggarwal <[email protected]>

Co-authored-by: Muneeb Ahmed <[email protected]>
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