-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Diff-informed queries: phase 3 (non-trivial locations) #19957
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
base: main
Are you sure you want to change the base?
Conversation
@@ -223,6 +223,14 @@ | |||
state1 = state2 + delta | |||
) | |||
} | |||
|
|||
predicate observeDiffInformedIncrementalMode() { |
Check warning
Code scanning / CodeQL
Dead code Warning
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 263 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-119/OverrunWriteProductFlow.ql@269:8:269:41), Column 5 does not select a source or sink originating from the flow call on line 263 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-119/OverrunWriteProductFlow.ql@270:58:270:63), Flow call outside 'select' clause (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-119/OverrunWriteProductFlow.ql@249:5:249:76) | ||
} | ||
|
||
Location getASelectedSinkLocation(DataFlow::Node sink) { |
Check warning
Code scanning / CodeQL
Dead code Warning
@@ -59,6 +59,14 @@ | |||
) | |||
) | |||
} | |||
|
|||
predicate observeDiffInformedIncrementalMode() { |
Check warning
Code scanning / CodeQL
Dead code Warning
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 81 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql@83:8:83:22), Column 7 does not select a source or sink originating from the flow call on line 81 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/experimental/Likely Bugs/ArrayAccessProductFlow.ql@84:23:84:27) | ||
} | ||
|
||
Location getASelectedSinkLocation(DataFlow::Node sink) { |
Check warning
Code scanning / CodeQL
Dead code Warning
ff3a4b9
to
95fe462
Compare
@@ -3,6 +3,7 @@ | |||
private import codeql.actions.dataflow.ExternalFlow | |||
private import codeql.actions.security.ArtifactPoisoningQuery | |||
private import codeql.actions.security.UntrustedCheckoutQuery | |||
private import codeql.actions.security.ControlChecks |
Check warning
Code scanning / CodeQL
Redundant import Warning
codeql.actions.security.ArtifactPoisoningQuery
95fe462
to
ec649a6
Compare
This PR enables diff-informed mode on queries that select a location other than dataflow source or sink.
I start with automatically generated stubs and then handle each TODO item in its own commit.