Repository navigation
A parameter passed to a call the proofs cannot name is not a proven store: libcurl's setopt_call[i](data, …) was held against a stated lend (#3124) - #3559
Merged
Conversation
…tore: libcurl's setopt_call[i](data, …) was held against a stated lend (#3124)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while trying libcurl's facts file against the real library (#3124).
setopt_longin libcurl 8.23.0 passes the handle on through a table of function pointers:setopt_call[i](data, option, arg). The scanner recorded a parameter handed to a callee it cannot name as a store, the report said only "stored", and the proofs file (contract-proofs.txt) recordedcurl_easy_setopt stores 0. Sema holds a stated contract against that file, so a program's ownlendoncurl_easy_setoptwas refused: "contradicts a proof: the function stores param 0". Nothing was proven: the callee is unknown.Now:
retains param 0 (passed to a call through \setopt_call[i]`, which the proofs cannot name)`.Test:
conan_contract_proofs_file_test, a newdispatchcase.With libcurl's facts applied, the one remaining contradiction against the libcurl scenario's own contract is
curl_easy_perform, which does store the handle, in the handle's own multi handle. That is the open question of #3124.Battery green (531 s); self-audit and
:release-checksgreen.