File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
cpp/ql/src/Security/CWE/CWE-428 Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,16 @@ module NullAppNameCreateProcessFunctionConfig implements DataFlow::ConfigSig {
62
62
val = call .getArgument ( call .getApplicationNameArgumentId ( ) )
63
63
)
64
64
}
65
+
66
+ predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
67
+
68
+ Location getASelectedSourceLocation ( DataFlow:: Node source ) { none ( ) }
69
+
70
+ Location getASelectedSinkLocation ( DataFlow:: Node sink ) {
71
+ exists ( CreateProcessFunctionCall call | result = call .getLocation ( ) |
72
+ sink .asExpr ( ) = call .getArgument ( call .getApplicationNameArgumentId ( ) )
73
+ )
74
+ }
65
75
}
66
76
67
77
module NullAppNameCreateProcessFunction = DataFlow:: Global< NullAppNameCreateProcessFunctionConfig > ;
@@ -82,6 +92,16 @@ module QuotedCommandInCreateProcessFunctionConfig implements DataFlow::ConfigSig
82
92
val = call .getArgument ( call .getCommandLineArgumentId ( ) )
83
93
)
84
94
}
95
+
96
+ predicate observeDiffInformedIncrementalMode ( ) { any ( ) }
97
+
98
+ Location getASelectedSourceLocation ( DataFlow:: Node source ) { none ( ) }
99
+
100
+ Location getASelectedSinkLocation ( DataFlow:: Node sink ) {
101
+ exists ( CreateProcessFunctionCall call | result = call .getLocation ( ) |
102
+ sink .asExpr ( ) = call .getArgument ( call .getCommandLineArgumentId ( ) )
103
+ )
104
+ }
85
105
}
86
106
87
107
module QuotedCommandInCreateProcessFunction =
You can’t perform that action at this time.
0 commit comments