Skip to content

Commit 91388ef

Browse files
committed
Fix UnionDomain crash on chrony
1 parent 9f1e5f9 commit 91388ef

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/analyses/base.ml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,9 +1411,13 @@ struct
14111411
let new_value = VD.update_offset (Queries.to_value_domain_ask a) old_value offs projected_value lval_raw ((Var x), cil_offset) t in
14121412
if WeakUpdates.mem x st.weak then
14131413
VD.join old_value new_value
1414-
else if invariant then
1414+
else if invariant then (
14151415
(* without this, invariant for ambiguous pointer might worsen precision for each individual address to their join *)
1416-
VD.meet old_value new_value
1416+
try
1417+
VD.meet old_value new_value
1418+
with Lattice.Uncomparable ->
1419+
new_value
1420+
)
14171421
else
14181422
new_value
14191423
in

0 commit comments

Comments
 (0)