mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Java/CommandLineQuery
85a4dd0325/java/ql/src/Security/CWE/CWE-078/ExecTainted.ql857b51be58/java/ql/src/Security/CWE/CWE-078/ExecUnescaped.qlb6e56f26c7/java/ql/src/experimental/Security/CWE/CWE-078/ExecTainted.ql
This commit is contained in:
@@ -63,9 +63,11 @@ module InputToArgumentToExecFlowConfig implements DataFlow::ConfigSig {
|
||||
// only to prevent overlapping results between two queries.
|
||||
predicate observeDiffInformedIncrementalMode() { any() }
|
||||
|
||||
// All queries use the argument as the primary location and do not use the
|
||||
// sink as an associated location.
|
||||
// ExecTainted.ql queries use the argument as the primary location;
|
||||
// ExecUnescaped.ql does not (used to prevent overlapping results).
|
||||
Location getASelectedSinkLocation(DataFlow::Node sink) {
|
||||
result = sink.getLocation()
|
||||
or
|
||||
exists(Expr argument | argumentToExec(argument, sink) | result = argument.getLocation())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user