mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
11 lines
350 B
Plaintext
11 lines
350 B
Plaintext
import csharp
|
|
import semmle.code.csharp.dataflow.internal.rangeanalysis.RangeUtils
|
|
import semmle.code.csharp.dataflow.ModulusAnalysis
|
|
import semmle.code.csharp.dataflow.Bound
|
|
|
|
from ControlFlow::Nodes::ExprNode e, Bound b, int delta, int mod
|
|
where
|
|
not e.getExpr().fromLibrary() and
|
|
exprModulus(e, b, delta, mod)
|
|
select e, b.toString(), delta, mod
|