File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
rust/ql/lib/codeql/rust/security/regex Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,17 @@ module RegexInjection {
32
32
*/
33
33
abstract class Barrier extends DataFlow:: Node { }
34
34
35
+ /**
36
+ * A unit class for adding additional flow steps.
37
+ */
38
+ class AdditionalFlowStep extends Unit {
39
+ /**
40
+ * Holds if the step from `node1` to `node2` should be considered a flow
41
+ * step for paths related to regular expression injection vulnerabilities.
42
+ */
43
+ abstract predicate step ( DataFlow:: Node node1 , DataFlow:: Node node2 ) ;
44
+ }
45
+
35
46
/**
36
47
* An active threat-model source, considered as a flow source.
37
48
*/
@@ -59,17 +70,6 @@ module RegexInjection {
59
70
ModelsAsDataSink ( ) { sinkNode ( this , "regex-use" ) }
60
71
}
61
72
62
- /**
63
- * A unit class for adding additional flow steps.
64
- */
65
- class AdditionalFlowStep extends Unit {
66
- /**
67
- * Holds if the step from `node1` to `node2` should be considered a flow
68
- * step for paths related to regular expression injection vulnerabilities.
69
- */
70
- abstract predicate step ( DataFlow:: Node node1 , DataFlow:: Node node2 ) ;
71
- }
72
-
73
73
/**
74
74
* An escape barrier for regular expression injection vulnerabilities.
75
75
*/
You can’t perform that action at this time.
0 commit comments