File tree Expand file tree Collapse file tree
test/query-tests/diagnostics Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ private import codeql.rust.AstConsistency as AstConsistency
1010private import codeql.rust.controlflow.internal.CfgConsistency as CfgConsistency
1111private import codeql.rust.dataflow.internal.DataFlowConsistency as DataFlowConsistency
1212private import codeql.rust.security.SqlInjectionExtensions
13+ private import codeql.rust.security.CleartextLoggingExtensions
1314
1415/**
1516 * Gets a count of the total number of lines of code in the database.
@@ -58,7 +59,9 @@ int getTaintEdgesCount() {
5859 * Gets a kind of query for which `n` is a sink (if any).
5960 */
6061string getAQuerySinkKind ( DataFlow:: Node n ) {
61- ( n instanceof SqlInjection:: Sink and result = "SqlInjection" )
62+ n instanceof SqlInjection:: Sink and result = "SqlInjection"
63+ or
64+ n instanceof CleartextLogging:: Sink and result = "CleartextLogging"
6265}
6366
6467/**
Original file line number Diff line number Diff line change 1414| Macro calls - resolved | 8 |
1515| Macro calls - total | 9 |
1616| Macro calls - unresolved | 1 |
17- | Taint edges - number of edges | 2 |
17+ | Taint edges - number of edges | 3 |
1818| Taint reach - nodes tainted | 0 |
1919| Taint reach - per million nodes | 0 |
2020| Taint sinks - cryptographic operations | 0 |
21- | Taint sinks - query sinks | 0 |
21+ | Taint sinks - query sinks | 3 |
2222| Taint sources - active | 0 |
2323| Taint sources - disabled | 0 |
2424| Taint sources - sensitive data | 0 |
You can’t perform that action at this time.
0 commit comments