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