Skip to content

Commit 429b07a

Browse files
author
Ted Reed
committed
Add execve to CommandExecution
1 parent 1d4dd2b commit 429b07a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/ql/src/semmle/code/cpp/security/CommandExecution.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ class ArrayExecFunctionCall extends FunctionCall {
9999
getTarget().hasGlobalName("execv") or
100100
getTarget().hasGlobalName("execvp") or
101101
getTarget().hasGlobalName("execvpe") or
102+
getTarget().hasGlobalName("execve") or
103+
getTarget().hasGlobalName("fexecve") or
102104
// Windows variants
103105
getTarget().hasGlobalName("_execv") or
104106
getTarget().hasGlobalName("_execve") or

0 commit comments

Comments
 (0)