Skip to content

Commit

Permalink
Fix uninitialized read in flattening record
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 21, 2021
1 parent 6624163 commit 83547de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/core/callstack.c
Expand Up @@ -152,6 +152,7 @@ MVMCallStackFlattening * MVM_callstack_allocate_flattening(MVMThreadContext *tc,
record->produced_cs.is_interned = 0;
record->produced_cs.has_flattening = 0;
record->produced_cs.arg_names = (MVMString **)((char *)record + record_size + flags_size);
record->produced_cs.with_invocant = NULL;

/* Set up arg info. */
record->arg_info.callsite = &(record->produced_cs);
Expand Down

0 comments on commit 83547de

Please sign in to comment.