ICU-11451 Add overflow fix
X-SVN-Rev: 37162
This commit is contained in:
parent
dacf87f4de
commit
9e8e68130e
@ -2138,7 +2138,7 @@ resolveImplicitLevels(UBiDi *pBiDi,
|
||||
/* The isolates[] entries contain enough information to
|
||||
resume the bidi algorithm in the same state as it was
|
||||
when it was interrupted by an isolate sequence. */
|
||||
if(dirProps[start]==PDI) {
|
||||
if(dirProps[start]==PDI && pBiDi->isolateCount >= 0) {
|
||||
levState.startON=pBiDi->isolates[pBiDi->isolateCount].startON;
|
||||
start1=pBiDi->isolates[pBiDi->isolateCount].start1;
|
||||
stateImp=pBiDi->isolates[pBiDi->isolateCount].stateImp;
|
||||
|
Loading…
Reference in New Issue
Block a user