Skip to content

Commit

Permalink
Check that addresses in struct fields are singletons and not top
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstanb committed Nov 18, 2023
1 parent 6cc01b5 commit 80492cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analyses/memLeak.ml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ struct
List.fold_left (fun acc f ->
if isPointerType f.ftype then
begin match ValueDomain.Structs.get s f with
| Queries.VD.Address a ->
| Queries.VD.Address a when not (Queries.AD.is_top a) && Queries.AD.cardinal a = 1 ->
let reachable_from_addr_set =
Queries.AD.fold (fun addr acc ->
match addr with
Expand Down

0 comments on commit 80492cc

Please sign in to comment.