avoid negative indicies access to parenStack
- thanks @talaj! (ref #4096)
This commit is contained in:
parent
33fac6d47d
commit
7003255c0e
1 changed files with 1 additions and 0 deletions
|
@ -162,6 +162,7 @@ UBool ScriptRun::next()
|
|||
if ((pairIndex & 1) == 0) {
|
||||
++parenSP;
|
||||
parenStack.emplace_back(pairIndex, scriptCode);
|
||||
startSP = parenSP;
|
||||
} else if (parenSP >= 0) {
|
||||
int32_t pi = pairIndex & ~1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue