rt: Null check in walk_obj_contents. Prevents marking from crashing when calling object constructors.
This commit is contained in:
parent
8bd019bdc8
commit
4dd23f24d6
1 changed files with 2 additions and 0 deletions
|
|
@ -903,6 +903,8 @@ data<T,U>::walk_obj_contents(bool align, ptr &dp) {
|
|||
type_desc *subtydesc =
|
||||
*reinterpret_cast<type_desc **>(box_ptr + sizeof(void *));
|
||||
ptr obj_closure_dp(box_ptr + sizeof(void *));
|
||||
if (!box_ptr) // Null check.
|
||||
return;
|
||||
|
||||
arena arena;
|
||||
type_param *params = type_param::from_obj_shape(subtydesc->shape,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue