Skip to content

Commit 7ab076e

Browse files
Fix bug in uninit and malloc_null
1 parent 125672a commit 7ab076e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analyses/malloc_null.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ struct
103103
| _ -> false)
104104
|> Queries.AD.join a
105105
(* Ignore soundness warnings, as invalidation proper will raise them. *)
106-
| _ -> AD.empty () (* TODO: correct?! *)
106+
| _ -> a
107107
in
108108
List.fold_left do_exp (AD.empty ()) args
109109
in

src/analyses/uninit.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ struct
202202
| _ -> false)
203203
|> Queries.AD.join a
204204
(* Ignore soundness warnings, as invalidation proper will raise them. *)
205-
| _ -> AD.empty ()
205+
| _ -> a
206206
in
207207
List.fold_right do_exp args (AD.empty ())
208208
in

0 commit comments

Comments
 (0)