Make sure the mappedArguments object gets properly created and is
large enough before using it.
Change-Id: Icb3c937483b49a7856d8d075d53fc10a11044840
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Scope scope(engine());
Scoped<MemberData> md(scope, d()->mappedArguments);
- if (md)
+ if (!md || md->size() < numAccessors)
d()->mappedArguments = md->reallocate(engine(), d()->mappedArguments, numAccessors);
for (uint i = 0; i < (uint)numAccessors; ++i) {
mappedArguments()->data[i] = context()->d()->callData->args[i];