File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed
test/query-tests/diagnostics Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,16 @@ int getTotalDataFlowInconsistencies() {
44
44
result = sum ( string type | | DataFlowConsistency:: getInconsistencyCounts ( type ) )
45
45
}
46
46
47
+ /**
48
+ * Gets the total number of taint edges in the database.
49
+ */
50
+ int getTaintEdgesCount ( ) {
51
+ result =
52
+ count ( DataFlow:: Node a , DataFlow:: Node b |
53
+ RustTaintTracking:: defaultAdditionalTaintStep ( a , b , _)
54
+ )
55
+ }
56
+
47
57
/**
48
58
* Gets a kind of query for which `n` is a sink (if any).
49
59
*/
Original file line number Diff line number Diff line change 60
60
or
61
61
key = "Taint sources - active" and value = count ( ActiveThreatModelSource s )
62
62
or
63
+ key = "Taint edges - number of edges" and value = getTaintEdgesCount ( )
64
+ or
63
65
key = "Taint reach - nodes tainted" and value = getTaintedNodesCount ( )
64
66
or
65
67
key = "Taint reach - per million nodes" and value = getTaintReach ( ) .floor ( )
Original file line number Diff line number Diff line change 15
15
| Macro calls - total | 9 |
16
16
| Macro calls - unresolved | 1 |
17
17
| Sensitive data | 0 |
18
+ | Taint edges - number of edges | 2 |
18
19
| Taint reach - nodes tainted | 0 |
19
20
| Taint reach - per million nodes | 0 |
20
21
| Taint sinks - cryptographic operations | 0 |
You can’t perform that action at this time.
0 commit comments