mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Java: Minor fix to modulus analysis to handle constant expressions and not only compile time constants
This commit is contained in:
@@ -10,7 +10,7 @@ class ModulusAnalysis
|
||||
|
||||
int seven = 7;
|
||||
if (mul % c2 == seven) {
|
||||
System.out.println(mul); // congruent 3 mod 42
|
||||
System.out.println(mul); // congruent 3 mod 42, 7 mod 43
|
||||
}
|
||||
|
||||
int j = cond
|
||||
|
||||
Reference in New Issue
Block a user