Skip to content

Commit d31987d

Browse files
committed
C++: Additional QLDoc.
1 parent 23a792b commit d31987d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

cpp/ql/src/semmle/code/cpp/dataflow/internal/DataFlowUtil.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,11 @@ predicate simpleLocalFlowStep(Node nodeFrom, Node nodeTo) {
485485
exprToExprStep_nocfg(nodeFrom.asExpr(), nodeTo.asExpr())
486486
or
487487
// Assignment -> LValue post-update node
488+
//
489+
// This is used for assignments whose left-hand side is not a variable
490+
// assignment or a storeStep but is still modeled by other means. It could be
491+
// a call to `operator*` or `operator[]` where taint should flow to the
492+
// post-update node of the qualifier.
488493
exists(AssignExpr assign |
489494
nodeFrom.asExpr() = assign and
490495
nodeTo.(PostUpdateNode).getPreUpdateNode().asExpr() = assign.getLValue()

0 commit comments

Comments
 (0)