mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
C++: Add += and friends to adjustedSink
This commit is contained in:
@@ -338,6 +338,9 @@ private Element adjustedSink(DataFlow::Node sink) {
|
||||
or
|
||||
// Taint `e--` and `e++` when `e` is tainted.
|
||||
result.(PostfixCrementOperation).getAnOperand() = sink.asExpr()
|
||||
or
|
||||
// Taint `e1 += e2` when `e1` or `e2` is tainted.
|
||||
result.(AssignArithmeticOperation).getAnOperand() = sink.asExpr()
|
||||
}
|
||||
|
||||
predicate tainted(Expr source, Element tainted) {
|
||||
|
||||
Reference in New Issue
Block a user