Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 73675e2 + d5b7ab5 commit ab944f3Copy full SHA for ab944f3
1 file changed
cpp/ql/src/semmle/code/cpp/security/FunctionWithWrappers.qll
@@ -3,9 +3,14 @@ import PrintfLike
3
private import TaintTracking
4
5
private
6
+bindingset[index]
7
string toCause(Function func, int index)
8
{
- result = func.getQualifiedName() + "(" + func.getParameter(index).getName() + ")"
9
+ result = func.getQualifiedName() + "(" + func.getParameter(index).getName() + ")" or
10
+ (
11
+ not exists(func.getParameter(index).getName()) and
12
+ result = func.getQualifiedName() + "(arg " + index + ")"
13
+ )
14
}
15
16
/**
0 commit comments