File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -135,11 +135,8 @@ module Kernel {
135
135
* spawn([env,] command... [,options]) -> pid
136
136
* ```
137
137
*/
138
- class KernelSpawnCall extends SystemCommandExecution:: Range instanceof DataFlow:: CallNode {
139
- KernelSpawnCall ( ) {
140
- this .getMethodName ( ) = "spawn" and
141
- this instanceof KernelMethodCall
142
- }
138
+ class KernelSpawnCall extends SystemCommandExecution:: Range instanceof KernelMethodCall {
139
+ KernelSpawnCall ( ) { this .getMethodName ( ) = "spawn" }
143
140
144
141
override DataFlow:: Node getAnArgument ( ) { result = super .getArgument ( _) }
145
142
Original file line number Diff line number Diff line change @@ -31,6 +31,11 @@ module Open3 {
31
31
}
32
32
}
33
33
34
+ /**
35
+ * A system command executed via one of the `Open4` methods.
36
+ * These methods take the same argument forms as `Kernel.system`.
37
+ * See `KernelSystemCall` for details.
38
+ */
34
39
class Open4Call extends SystemCommandExecution:: Range instanceof DataFlow:: CallNode {
35
40
Open4Call ( ) {
36
41
this = API:: getTopLevelMember ( "Open4" ) .getAMethodCall ( [ "open4" , "popen4" , "spawn" ] )
You can’t perform that action at this time.
0 commit comments