C++: Add a missing taint step and accept test changes.

This commit is contained in:
Mathias Vorreiter Pedersen
2024-04-26 18:33:39 +01:00
parent 527409d05f
commit 401717d739
2 changed files with 1 additions and 2 deletions

View File

@@ -560,7 +560,7 @@ private class IteratorAssignmentMemberOperatorModel extends IteratorAssignmentMe
TaintFunction, SideEffectFunction, AliasFunction
{
override predicate hasTaintFlow(FunctionInput input, FunctionOutput output) {
input.isParameterDeref(0) and
(input.isParameterDeref(0) or input.isParameter(0)) and
output.isQualifierObject()
}

View File

@@ -4,5 +4,4 @@ WARNING: Module DataFlow has been deprecated and may be removed in future (taint
WARNING: Module DataFlow has been deprecated and may be removed in future (taint.ql:68,25-33)
WARNING: Module TaintTracking has been deprecated and may be removed in future (taint.ql:73,20-33)
testFailures
| standalone_iterators.cpp:112:11:112:21 | // $ ast,ir | Missing result:ir= |
failures