Skip to content

Commit

Permalink
Consider alloca in special in mallocFresh
Browse files Browse the repository at this point in the history
  • Loading branch information
karoliineh committed Jan 11, 2024
1 parent 8c85984 commit 7685f55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/analyses/mallocFresh.ml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ struct
match desc.special args with
| Malloc _
| Calloc _
| Realloc _ ->
| Realloc _
| Alloca _ ->
begin match ctx.ask (AllocVar {on_stack = false}) with
| `Lifted var -> D.add var ctx.local
| _ -> ctx.local
Expand Down

0 comments on commit 7685f55

Please sign in to comment.