Skip to content

Commit 2e7c1a1

Browse files
committed
C++: Add a missing taint step and accept test changes.
1 parent 800c9c2 commit 2e7c1a1

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

cpp/ql/lib/semmle/code/cpp/models/implementations/Iterator.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ private class IteratorAssignmentMemberOperatorModel extends IteratorAssignmentMe
560560
TaintFunction, SideEffectFunction, AliasFunction
561561
{
562562
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
563-
input.isParameterDeref(0) and
563+
(input.isParameterDeref(0) or input.isParameter(0)) and
564564
output.isQualifierObject()
565565
}
566566

cpp/ql/test/library-tests/dataflow/taint-tests/taint.expected

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,4 @@ WARNING: Module DataFlow has been deprecated and may be removed in future (taint
44
WARNING: Module DataFlow has been deprecated and may be removed in future (taint.ql:68,25-33)
55
WARNING: Module TaintTracking has been deprecated and may be removed in future (taint.ql:73,20-33)
66
testFailures
7-
| standalone_iterators.cpp:112:11:112:21 | // $ ast,ir | Missing result:ir= |
87
failures

0 commit comments

Comments
 (0)