Skip to content

Commit 8059230

Browse files
geoffw0jbj
andauthored
Update cpp/ql/src/semmle/code/cpp/models/implementations/StdPair.qll
Co-authored-by: Jonas Jensen <jbj@github.com>
1 parent 773bc48 commit 8059230

File tree

1 file changed

+1
-1
lines changed
  • cpp/ql/src/semmle/code/cpp/models/implementations

1 file changed

+1
-1
lines changed

cpp/ql/src/semmle/code/cpp/models/implementations/StdPair.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class StdMakePair extends TaintFunction {
3838

3939
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
4040
// taint flow from any parameter to the returned object
41-
input.isParameterDeref(_) and
41+
input.isParameterDeref([0, 1]) and
4242
output.isReturnValue()
4343
}
4444
}

0 commit comments

Comments
 (0)