We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 169965c commit c1fae91Copy full SHA for c1fae91
ruby/ql/src/queries/meta/TaintSteps.ql
@@ -14,8 +14,10 @@ import codeql.ruby.dataflow.internal.TaintTrackingPublic
14
15
predicate relevantStep(DataFlow::Node pred, DataFlow::Node succ) { localTaintStep(pred, succ) }
16
17
-from DataFlow::Node pred, int numOfSuccessors
+from File file, int numSteps
18
where
19
- relevantStep(pred, _) and
20
- numOfSuccessors = count(DataFlow::Node succ | relevantStep(pred, succ))
21
-select pred, "Step to " + numOfSuccessors + " other nodes."
+ numSteps =
+ strictcount(DataFlow::Node pred, DataFlow::Node succ |
+ relevantStep(pred, succ) and pred.getLocation().getFile() = file
22
+ )
23
+select file, "File has " + numSteps + " taint steps."
0 commit comments