File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
swift/ql/lib/codeql/swift/regex Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ private class ParsedStringRegex extends RegExp, StringLiteralExpr {
19
19
RegexEval eval ;
20
20
21
21
ParsedStringRegex ( ) {
22
- RegexUseFlow :: flow ( DataFlow:: exprNode ( this ) , DataFlow:: exprNode ( eval .getRegexInput ( ) ) )
22
+ StringLiteralUseFlow :: flow ( DataFlow:: exprNode ( this ) , DataFlow:: exprNode ( eval .getRegexInput ( ) ) )
23
23
}
24
24
25
25
/**
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ private import codeql.swift.regex.Regex
14
14
* A data flow configuration for tracking string literals that are used as
15
15
* regular expressions.
16
16
*/
17
- private module RegexUseConfig implements DataFlow:: ConfigSig {
17
+ private module StringLiteralUseConfig implements DataFlow:: ConfigSig {
18
18
predicate isSource ( DataFlow:: Node node ) { node .asExpr ( ) instanceof StringLiteralExpr }
19
19
20
20
predicate isSink ( DataFlow:: Node node ) { node .asExpr ( ) = any ( RegexEval eval ) .getRegexInput ( ) }
@@ -34,4 +34,4 @@ private module RegexUseConfig implements DataFlow::ConfigSig {
34
34
}
35
35
}
36
36
37
- module RegexUseFlow = DataFlow:: Global< RegexUseConfig > ;
37
+ module StringLiteralUseFlow = DataFlow:: Global< StringLiteralUseConfig > ;
You can’t perform that action at this time.
0 commit comments