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
4
4
import utils.InlineFlowTest
5
5
6
6
/**
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`.
8
8
*/
9
9
module MyFlowConfig implements DataFlow:: ConfigSig {
10
10
predicate isSource ( DataFlow:: Node source ) { source instanceof ThreatModelSource }
11
11
12
12
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" )
14
14
.getArgList ( )
15
15
.getAnArg ( ) = sink .asExpr ( ) .getExpr ( )
16
16
}
You can’t perform that action at this time.
0 commit comments