-
Notifications
You must be signed in to change notification settings - Fork 78
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,17 +26,17 @@ | |
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The makefile for this case needs a loop unwindset updated: https://d39z7xfr4hj3jh.cloudfront.net/final/f6b58be4-d13f-4665-9be6-c5c08cfb8476/artifacts/findHeaderFieldParserCallback/report/html/index.html There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
#include "http_cbmc_state.h" | ||
#include "http_parser.h" | ||
#include "llhttp.h" | ||
#include "core_http_client.h" | ||
|
||
int __CPROVER_file_local_core_http_client_c_findHeaderFieldParserCallback( http_parser * pHttpParser, | ||
int __CPROVER_file_local_core_http_client_c_findHeaderFieldParserCallback( llhttp_t * pHttpParser, | ||
const char * pFieldLoc, | ||
size_t fieldLen ); | ||
|
||
|
||
void findHeaderFieldParserCallback_harness() | ||
{ | ||
http_parser * pHttpParser; | ||
llhttp_t * pHttpParser; | ||
HTTPResponse_t * pResponse; | ||
findHeaderContext_t * pFindHeaderContext; | ||
size_t fieldLen, fieldContextLen, fieldOffset, valueLen, valueOffset; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lines 58-61 should be reevaluated given these warnings: https://d39z7xfr4hj3jh.cloudfront.net/final/f6b58be4-d13f-4665-9be6-c5c08cfb8476/artifacts/HTTPClient_Send/report/html/index.html
There was a problem hiding this comment.
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 intodev
.There was a problem hiding this comment.
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