mirror of
https://github.com/github/codeql.git
synced 2026-04-18 21:44:02 +02:00
17 lines
408 B
Plaintext
17 lines
408 B
Plaintext
import csharp
|
|
import semmle.code.csharp.dataflow.SignAnalysis
|
|
|
|
from Expr e
|
|
where
|
|
not exists(exprSign(e)) and
|
|
not e instanceof TypeAccess and
|
|
(
|
|
e.getType() instanceof CharType or
|
|
e.getType() instanceof IntegralType or
|
|
e.getType() instanceof FloatingPointType or
|
|
e.getType() instanceof DecimalType or
|
|
e.getType() instanceof Enum or
|
|
e.getType() instanceof PointerType
|
|
)
|
|
select e
|