We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99a9d7f commit bcd84efCopy full SHA for bcd84ef
cpp/ql/src/semmle/code/cpp/ir/dataflow/DefaultTaintTracking.qll
@@ -338,6 +338,9 @@ private Element adjustedSink(DataFlow::Node sink) {
338
or
339
// Taint `e--` and `e++` when `e` is tainted.
340
result.(PostfixCrementOperation).getAnOperand() = sink.asExpr()
341
+ or
342
+ // Taint `e1 += e2` when `e1` or `e2` is tainted.
343
+ result.(AssignArithmeticOperation).getAnOperand() = sink.asExpr()
344
}
345
346
predicate tainted(Expr source, Element tainted) {
0 commit comments