Skip to content

Commit

Permalink
Fix invalid write to memory
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou committed Jun 28, 2019
1 parent b653be3 commit c960afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utility.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ uint64_t aqaml_printf_ksprintf_detail(uint64_t callback_src, uint64_t fmt_src)
if (functable[cnt] == 0)
return aqaml_appcls_detail(1, callback_src, &fmt_src);

uint64_t ret_src = aqaml_alloc_block(3, 0, 247);
uint64_t ret_src = aqaml_alloc_block(4, 0, 247);
AQamlValue ret = get_value(ret_src);
ret.array->data[0] = functable[cnt];
ret.array->data[1] = cnt;
Expand Down

0 comments on commit c960afa

Please sign in to comment.