mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
have rb/meta/taint-steps print only one for each file, to limit the size of the output
This commit is contained in:
@@ -14,8 +14,10 @@ import codeql.ruby.dataflow.internal.TaintTrackingPublic
|
||||
|
||||
predicate relevantStep(DataFlow::Node pred, DataFlow::Node succ) { localTaintStep(pred, succ) }
|
||||
|
||||
from DataFlow::Node pred, int numOfSuccessors
|
||||
from File file, int numSteps
|
||||
where
|
||||
relevantStep(pred, _) and
|
||||
numOfSuccessors = count(DataFlow::Node succ | relevantStep(pred, succ))
|
||||
select pred, "Step to " + numOfSuccessors + " other nodes."
|
||||
numSteps =
|
||||
strictcount(DataFlow::Node pred, DataFlow::Node succ |
|
||||
relevantStep(pred, succ) and pred.getLocation().getFile() = file
|
||||
)
|
||||
select file, "File has " + numSteps + " taint steps."
|
||||
|
||||
Reference in New Issue
Block a user