File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
rust/ql/test/library-tests/dataflow/sources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import codeql.rust.Concepts
44import utils.InlineFlowTest
55
66/**
7- * Configuration for flow from any threat model source to an argument of a function called `sink`.
7+ * Configuration for flow from any threat model source to an argument of the function `sink`.
88 */
99module MyFlowConfig implements DataFlow:: ConfigSig {
1010 predicate isSource ( DataFlow:: Node source ) { source instanceof ThreatModelSource }
1111
1212 predicate isSink ( DataFlow:: Node sink ) {
13- any ( CallExpr call | call .getExpr ( ) .( PathExpr ) .getPath ( ) .toString ( ) = "sink" )
13+ any ( CallExpr call | call .getExpr ( ) .( PathExpr ) .getPath ( ) .getResolvedPath ( ) = "crate::test:: sink" )
1414 .getArgList ( )
1515 .getAnArg ( ) = sink .asExpr ( ) .getExpr ( )
1616 }
You can’t perform that action at this time.
0 commit comments