Nora Dimitrijević
2025-10-09 09:56:44 +02:00
parent b023880a0a
commit 4482e831d7

View File

@@ -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())
}
}