mirror of
https://github.com/github/codeql.git
synced 2026-04-23 15:55:18 +02:00
C++: Simplify
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user