mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
9 lines
272 B
Plaintext
9 lines
272 B
Plaintext
import cpp
|
|
|
|
from AddExpr a, Variable v, RelationalOperation cmp
|
|
where
|
|
a.getAnOperand() = v.getAnAccess() and
|
|
cmp.getAnOperand() = a and
|
|
cmp.getAnOperand() = v.getAnAccess() and
|
|
forall(Expr op | op = a.getAnOperand() | isSmall(op))
|
|
select cmp, "Bad overflow check." |