We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8675653 commit c6b7bb4Copy full SHA for c6b7bb4
cpp/ql/src/Security/CWE/CWE-121/UnterminatedVarargsCall.ql
@@ -60,11 +60,11 @@ class VarargsFunction extends Function {
60
// the terminator is 0 or -1
61
result = ["0", "-1"] and
62
// at least 80% of calls have the terminator
63
- cnt = trailingArgValueCount(result) and
64
- totalCount = totalCount() and
+ cnt = this.trailingArgValueCount(result) and
+ totalCount = this.totalCount() and
65
100 * cnt / totalCount >= 80 and
66
// terminator value is not used in a non-terminating position
67
- not exists(FunctionCall fc, int index | nonTrailingVarArgValue(fc, index) = result)
+ not exists(FunctionCall fc, int index | this.nonTrailingVarArgValue(fc, index) = result)
68
}
69
70
predicate isWhitelisted() {
0 commit comments