Data flow: Track simple call contexts in nodeCand[Fwd]1#2822
Merged
aschackmull merged 3 commits intoFeb 21, 2020
Conversation
a0ebf63 to
4f647c1
Compare
4f647c1 to
a695b56
Compare
aschackmull
reviewed
Feb 20, 2020
Contributor
aschackmull
left a comment
There was a problem hiding this comment.
A few minor things, otherwise looks good.
aschackmull
approved these changes
Feb 21, 2020
max-schaefer
pushed a commit
to max-schaefer/codeql-go
that referenced
this pull request
Feb 21, 2020
Contributor
|
For the record, the Java result changes were: |
Contributor
|
I didn't think this PR was supposed to have a large impact on results. Did I misunderstand? |
Contributor
|
I don't exactly know why |
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.
This PR add a simple
fromArgBoolean call context tonodeCandFwd1(and similarly,toReturnis added tonodeCand1). This enables us to restrict flow back out of method to call sites where we have seen flow in, in the same way that field reads are restricted to fields that have also been written to.In addition to making the two predicates more precise, this means we can also restrict taint summary calculations to
Nodesnfor whichnodeCand1(n, true, config)holds, i.e., nodes that can reach a sink via a return.Profiling runs (internal links):