Update swift/ql/src/queries/Summary/SummaryStats.ql

Co-authored-by: Mathias Vorreiter Pedersen <mathiasvp@github.com>
This commit is contained in:
Geoffrey White
2022-12-08 13:02:58 +00:00
committed by GitHub
parent 80cd994e36
commit e288b07099

View File

@@ -25,7 +25,7 @@ class TaintReachConfig extends TaintTracking::Configuration {
float taintReach() {
exists(TaintReachConfig config, int tainted, int total |
tainted = count(DataFlow::Node n | config.hasFlow(_, n)) and
tainted = count(DataFlow::Node n | config.hasFlowTo(n)) and
total = count(DataFlow::Node n) and
result = (tainted * 1000000.0) / total
)