Skip to content

Commit c6b7bb4

Browse files
committed
C++: Make the ql-for-ql checks happy.
1 parent 8675653 commit c6b7bb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cpp/ql/src/Security/CWE/CWE-121/UnterminatedVarargsCall.ql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ class VarargsFunction extends Function {
6060
// the terminator is 0 or -1
6161
result = ["0", "-1"] and
6262
// at least 80% of calls have the terminator
63-
cnt = trailingArgValueCount(result) and
64-
totalCount = totalCount() and
63+
cnt = this.trailingArgValueCount(result) and
64+
totalCount = this.totalCount() and
6565
100 * cnt / totalCount >= 80 and
6666
// terminator value is not used in a non-terminating position
67-
not exists(FunctionCall fc, int index | nonTrailingVarArgValue(fc, index) = result)
67+
not exists(FunctionCall fc, int index | this.nonTrailingVarArgValue(fc, index) = result)
6868
}
6969

7070
predicate isWhitelisted() {

0 commit comments

Comments
 (0)