Skip to content

Commit

Permalink
Do not ingore offsets when calling BlobSize for memset/memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstanb committed Sep 29, 2023
1 parent 655362e commit 2534945
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2041,8 +2041,7 @@ struct
| _ -> false
in
if points_to_heap_only then
(* Ask for BlobSize from the base address (the second field set to true) in order to avoid BlobSize giving us bot *)
ctx.ask (Queries.BlobSize {exp = dest; base_address = true})
ctx.ask (Queries.BlobSize {exp = dest; base_address = false})
else
match ctx.ask (Queries.MayPointTo dest) with
| a when not (Queries.AD.is_top a) ->
Expand Down

0 comments on commit 2534945

Please sign in to comment.