We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8b58f2 commit f2f577fCopy full SHA for f2f577f
1 file changed
rust/ql/test/library-tests/dataflow/sources/InlineFlow.ql
@@ -4,13 +4,13 @@ import codeql.rust.Concepts
4
import utils.InlineFlowTest
5
6
/**
7
- * Configuration for flow from any threat model source to an argument of a function called `sink`.
+ * Configuration for flow from any threat model source to an argument of the function `sink`.
8
*/
9
module MyFlowConfig implements DataFlow::ConfigSig {
10
predicate isSource(DataFlow::Node source) { source instanceof ThreatModelSource }
11
12
predicate isSink(DataFlow::Node sink) {
13
- any(CallExpr call | call.getExpr().(PathExpr).getPath().toString() = "sink")
+ any(CallExpr call | call.getExpr().(PathExpr).getPath().getResolvedPath() = "crate::test::sink")
14
.getArgList()
15
.getAnArg() = sink.asExpr().getExpr()
16
}
0 commit comments