Skip to content

Commit

Permalink
Add Int cases to MayPointTo and ReachableFrom queries
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Sep 19, 2023
1 parent 83978e9 commit c458db2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/analyses/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1270,6 +1270,7 @@ struct
match eval_rv_address (Analyses.ask_of_ctx ctx) ctx.global ctx.local e with
| Address a -> a
| Bot -> Queries.Result.bot q (* TODO: remove *)
| Int i -> AD.of_int i
| _ -> Queries.Result.top q
end
| Q.EvalThread e -> begin
Expand All @@ -1292,6 +1293,7 @@ struct
AD.add UnknownPtr addrs' (* add unknown back *)
else
addrs'
| Int i -> AD.of_int i
| _ -> AD.empty ()
end
| Q.ReachableUkTypes e -> begin
Expand Down

0 comments on commit c458db2

Please sign in to comment.