Skip to content

Commit a1963da

Browse files
committed
Congruencedomain.sub: Check also for upper bound overflow for signed
1 parent 3c27e68 commit a1963da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdomain/value/cdomains/int/congruenceDomain.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ struct
352352
let m_ikind = max_ik +: Z.one in
353353
if Cil.isSigned ik then
354354
let c = c1 -: c2 in
355-
if c >=: min_ik then
355+
if c >=: min_ik && c <= max_ik then
356356
Some (c, Z.zero)
357357
else
358358
top_of ik

0 commit comments

Comments
 (0)