Skip to content

Commit b1f66ae

Browse files
committed
C++: Fix warnings.
1 parent 01dc366 commit b1f66ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/semmle/code/cpp/models/interfaces/FormattingFunction.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ abstract class FormattingFunction extends ArrayFunction, TaintFunction {
149149
not exists(getSizeParameterIndex())
150150
}
151151

152-
predicate hasArrayInput(int bufParam) { bufParam = getFormatParameterIndex() }
152+
override predicate hasArrayInput(int bufParam) { bufParam = getFormatParameterIndex() }
153153

154-
predicate hasArrayOutput(int bufParam) { bufParam = getOutputParameterIndex() }
154+
override predicate hasArrayOutput(int bufParam) { bufParam = getOutputParameterIndex() }
155155

156156
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
157157
input.isParameterDeref(getFormatParameterIndex()) and

0 commit comments

Comments
 (0)