Skip to content

Commit 2561cec

Browse files
committed
Java: Diff-informed CommandLineQuery
1 parent 40529d1 commit 2561cec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

java/ql/lib/semmle/code/java/security/CommandLineQuery.qll

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ module InputToArgumentToExecFlowConfig implements DataFlow::ConfigSig {
5858
predicate isAdditionalFlowStep(DataFlow::Node n1, DataFlow::Node n2) {
5959
any(CommandInjectionAdditionalTaintStep s).step(n1, n2)
6060
}
61+
62+
// It's valid to use diff-informed data flow for this configuration because
63+
// the location of the selected element in the query is contained inside the
64+
// location of the sink. The query, as a predicate, is used negated in
65+
// another query, but that's only to prevent overlapping results between two
66+
// queries.
67+
predicate observeDiffInformedIncrementalMode() { any() }
6168
}
6269

6370
/**

0 commit comments

Comments
 (0)