[host] app: zero memory allocated for lgmp userdata

This commit is contained in:
Geoffrey McRae 2022-01-05 20:13:12 +11:00
parent 912ca62a7b
commit b3f6c75ade

View File

@ -552,6 +552,7 @@ static void * allocUserData(KVMFRUserData * dst, size_t need, bool consume)
return NULL;
}
memset(dst->data + dst->size, 0, newSize - dst->size);
dst->size = newSize;
}