ICU-11451 Add overflow fix

X-SVN-Rev: 37162
This commit is contained in:
Michael Ow 2015-03-06 21:03:04 +00:00
parent dacf87f4de
commit 9e8e68130e

View File

@ -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;