Skip to content

Commit 4ea0756

Browse files
committed
Fix both branches dead from bot address in array
Fix from #1188 (comment).
1 parent 993a045 commit 4ea0756

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cdomains/valueDomain.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct
201201
let typAttr = typeAttrs ai in
202202
let can_recover_from_top = ArrayDomain.can_recover_from_top (ArrayDomain.get_domain ~varAttr ~typAttr) in
203203
let len = array_length_idx (IndexDomain.top ()) length in
204-
Array (CArrays.make ~varAttr ~typAttr len (if can_recover_from_top then (top_value ai) else (bot_value ai)))
204+
Array (CArrays.make ~varAttr ~typAttr len (if can_recover_from_top then (top_value ai) else Bot))
205205
| TNamed ({ttype=t; _}, _) -> top_value ~varAttr t
206206
| _ -> Top
207207

0 commit comments

Comments
 (0)