mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Java: Add ConditionalExpr to overflow candidate pattern.
This commit is contained in:
@@ -121,6 +121,11 @@ public class A {
|
||||
}
|
||||
}
|
||||
|
||||
void overflowTests2(int[] a, boolean b) {
|
||||
int newlen = b ? (a.length + 1) << 1 : (a.length >> 1) + a.length;
|
||||
if (newlen < 0) overflow();
|
||||
}
|
||||
|
||||
static final long VAL = 100L;
|
||||
|
||||
long overflowAwareIncrease(long x) {
|
||||
|
||||
Reference in New Issue
Block a user