-
Notifications
You must be signed in to change notification settings - Fork 3
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
Ensure summaries of un-analyzed functions are sufficient #9
Labels
Comments
This issue is still relevant as we continue integrating the escape analysis to the dataflow analysis. |
Stale issue message |
Stale issue message |
Stale issue message |
Stale issue message |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Some functions could behave in ways that individual summaries of dataflow and escape are insufficient to capture taint flows, when the body of the function isn't analyzed:
In this example,
ok
function doesn't have an issue, because the dataflow noticesx
flows top
, and the escape notices thatp
escapes. In thebad
function, the dataflow doesn't have any edges (asp
is unused), and the escape analysis doesn't report any escapes of arguments, so taint would be lost, even though it can flow to a shared object.This problem only occurs when the dataflow cannot see the function body; if the taint analysis sees the function body it will see the leak of a tainted value
q
.To solve this, some kind of summary that includes the effects of dataflow and escape together seems necessary, i.e. an edge from an argument to a virtual "escaped" node in this case.
The text was updated successfully, but these errors were encountered: