Skip to content

Commit 4c70d5f

Browse files
committed
Data flow: Rework reverse flow through parameters
1 parent a8f8ab5 commit 4c70d5f

File tree

3 files changed

+689
-311
lines changed

3 files changed

+689
-311
lines changed

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/ProductFlow.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ module ProductFlow {
546546
Flow1::PathGraph::edges(pred1, succ1, _, _) and
547547
exists(ReturnKindExt returnKind |
548548
succ1.getNode() = getAnOutNodeExt(call, returnKind) and
549-
returnKind = getParamReturnPosition(_, pred1.asParameterReturnNode()).getKind()
549+
returnKind = getParamReturnPosition(pred1.asParameterReturnNode()).getKind()
550550
)
551551
}
552552

@@ -574,7 +574,7 @@ module ProductFlow {
574574
Flow2::PathGraph::edges(pred2, succ2, _, _) and
575575
exists(ReturnKindExt returnKind |
576576
succ2.getNode() = getAnOutNodeExt(call, returnKind) and
577-
returnKind = getParamReturnPosition(_, pred2.asParameterReturnNode()).getKind()
577+
returnKind = getParamReturnPosition(pred2.asParameterReturnNode()).getKind()
578578
)
579579
}
580580

0 commit comments

Comments
 (0)