Skip to content

Commit 6242787

Browse files
Initialize shadow memory on allocate()
Triggers allocation of global-scope shadow memory.
1 parent f3c7b40 commit 6242787

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/goto-symex/symex_builtin_functions.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ void goto_symext::symex_allocate(
201201
rhs=address_of_exprt(
202202
value_symbol.symbol_expr(), pointer_type(value_symbol.type));
203203
}
204+
shadow_memory.symex_field_dynamic_init(
205+
state, value_symbol.symbol_expr(), code);
204206

205207
symex_assign(state, lhs, typecast_exprt::conditional_cast(rhs, lhs.type()));
206208
}

0 commit comments

Comments
 (0)