Core: Fix stack bound error
Vicki Pfau vi@endrift.com
Mon, 03 Sep 2018 11:22:20 -0700
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
src/core/serialize.c
→
src/core/serialize.c
@@ -327,9 +327,10 @@ }
struct mStateExtdataItem item = { .size = sizeof(creationUsec), - .data = &creationUsec, - .clean = NULL + .data = malloc(sizeof(creationUsec)), + .clean = free }; + *(uint64_t*) item.data = creationUsec; mStateExtdataPut(&extdata, EXTDATA_META_TIME, &item); }