In `qcvm` when zeroing memory for new entitydata wrong number of bytes used.
This leads to crash with the error:`malloc(): invalid size (unsorted)`.
Use `prog->entityfields * sizeof(qcint_t)`
instead of `sz * sizeof(qcint_t)`.
size_t sz = prog->entitydata.size();
prog->entitydata.resize(sz + prog->entityfields);
data = (char*)&prog->entitydata[sz];
- memset(data, 0, sz * sizeof(qcint_t));
+ memset(data, 0, prog->entityfields * sizeof(qcint_t));
return e;
}