CPP: Make FunctionWithWrappers toCause work on builtin functions.

This commit is contained in:
Geoffrey White
2018-08-31 15:00:17 +01:00
parent d4f9b5eb52
commit d5b7ab5aa1

View File

@@ -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 + ")"
)
}
/**