File icu-CVE-2014-8146.patch of Package icu.7191

From f8f3952e3d87c29f4c982dc6e1a37af981ec0166 Mon Sep 17 00:00:00 2001
From: Felix Zhang <fezhang@suse.com>
Date: Thu, 7 Apr 2016 12:25:35 +0800
Subject: [PATCH 1/2] CVE-2014-8146

---
 source/common/ubidi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/source/common/ubidi.c b/source/common/ubidi.c
index 75afd06..8860d68 100644
--- a/source/common/ubidi.c
+++ b/source/common/ubidi.c
@@ -2049,7 +2049,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) {
         start1=pBiDi->isolates[pBiDi->isolateCount].start1;
         stateImp=pBiDi->isolates[pBiDi->isolateCount].stateImp;
         levState.state=pBiDi->isolates[pBiDi->isolateCount].state;
-- 
2.6.6