Skip to content

Commit

Permalink
Fix possible access to fromspace in MVM_frame_vivify_lexical
Browse files Browse the repository at this point in the history
effective_sf can be in the nursery if it was allocated by freshcoderef
  • Loading branch information
niner committed Apr 24, 2020
1 parent a95e5ac commit 845e8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/frame.c
Expand Up @@ -1286,7 +1286,7 @@ MVMObject * MVM_frame_vivify_lexical(MVMThreadContext *tc, MVMFrame *f, MVMuint1
if (sc == NULL)
MVM_exception_throw_adhoc(tc,
"SC not yet resolved; lookup failed");
MVMROOT(tc, f, {
MVMROOT2(tc, f, effective_sf, {
resolved = MVM_sc_get_object(tc, sc, objid);
});
MVM_ASSIGN_REF(tc, &(effective_sf->common.header),
Expand Down

0 comments on commit 845e8a3

Please sign in to comment.