Fix segmentation fault when trying to store a value under next index into an array.
All checks were successful
The build was successful.
All checks were successful
The build was successful.
This commit is contained in:
parent
4af3220018
commit
7eba38a633
|
@ -2447,6 +2447,15 @@ static sxi32 VmByteCodeExec(
|
|||
PH7_MemObjRelease(pTos);
|
||||
} else {
|
||||
pObj = VmExtractMemObj(&(*pVm), &sName, FALSE, TRUE);
|
||||
if(pInstr->iP2 & MEMOBJ_HASHMAP) {
|
||||
ph7_hashmap *pMap;
|
||||
pMap = PH7_NewHashmap(&(*pVm), 0, 0);
|
||||
if(pMap == 0) {
|
||||
PH7_VmMemoryError(&(*pVm));
|
||||
goto Abort;
|
||||
}
|
||||
pObj->x.pOther = pMap;
|
||||
}
|
||||
MemObjSetType(pObj, pInstr->iP2);
|
||||
}
|
||||
pTos->nIdx = SXU32_HIGH; /* Mark as constant */
|
||||
|
|
Loading…
Reference in New Issue
Block a user