C++: Simplify

This commit is contained in:
Mathias Vorreiter Pedersen
2020-02-10 13:01:40 +01:00
parent 6804018a64
commit 99a9d7f676

View File

@@ -337,10 +337,7 @@ private Element adjustedSink(DataFlow::Node sink) {
result.(NotExpr).getOperand() = sink.asExpr()
or
// Taint `e--` and `e++` when `e` is tainted.
exists(PostfixCrementOperation crement |
crement.getAnOperand() = sink.asExpr() and
result = crement
)
result.(PostfixCrementOperation).getAnOperand() = sink.asExpr()
}
predicate tainted(Expr source, Element tainted) {