mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
CPP: Make FunctionWithWrappers toCause work on builtin functions.
This commit is contained in:
@@ -3,9 +3,14 @@ import PrintfLike
|
||||
private import TaintTracking
|
||||
|
||||
private
|
||||
bindingset[index]
|
||||
string toCause(Function func, int index)
|
||||
{
|
||||
result = func.getQualifiedName() + "(" + func.getParameter(index).getName() + ")"
|
||||
result = func.getQualifiedName() + "(" + func.getParameter(index).getName() + ")" or
|
||||
(
|
||||
not exists(func.getParameter(index).getName()) and
|
||||
result = func.getQualifiedName() + "(arg " + index + ")"
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user