[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - external/icu

Caolán McNamara caolanm at redhat.com
Wed Aug 27 09:17:43 PDT 2014


 external/icu/UnpackedTarball_icu.mk |    1 +
 external/icu/icu4c-icu11100.patch.1 |   24 ++++++++++++++++++++++++
 2 files changed, 25 insertions(+)

New commits:
commit 3259d56baf99956ed6576919c7b0abd9203de41d
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Aug 26 14:39:48 2014 +0100

    Resolves: icu#11100 resolveImplicitLevels woes
    
    Change-Id: I0c052cbcfe375bd1279c2235b53c909920e2e779
    (cherry picked from commit 5d952d4208aa61b6bb0c20d36745d0554be7cec3)
    Reviewed-on: https://gerrit.libreoffice.org/11129
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/external/icu/UnpackedTarball_icu.mk b/external/icu/UnpackedTarball_icu.mk
index 243b17c..f8b5dd8 100644
--- a/external/icu/UnpackedTarball_icu.mk
+++ b/external/icu/UnpackedTarball_icu.mk
@@ -22,6 +22,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,icu,\
 	external/icu/icu4c-buffer-overflow.patch \
 	external/icu/icu4c-$(if $(filter ANDROID,$(OS)),android,rpath).patch \
 	external/icu/icu4c-icu11054.patch.1 \
+	external/icu/icu4c-icu11100.patch.1 \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/icu/icu4c-icu11100.patch.1 b/external/icu/icu4c-icu11100.patch.1
new file mode 100644
index 0000000..d44dc83
--- /dev/null
+++ b/external/icu/icu4c-icu11100.patch.1
@@ -0,0 +1,24 @@
+--- icu/source/common/ubidi.c.orig	2014-08-09 20:54:39.338833533 +0100
++++ icu/source/common/ubidi.c	2014-08-09 20:55:48.625469055 +0100
+@@ -2097,6 +2097,12 @@
+     return DirProp_ON;
+ }
+ 
++static int
++isolatesavailable(UBiDi *pBiDi) {
++    return (pBiDi->isolateCount < SIMPLE_ISOLATES_SIZE-1 ||
++            pBiDi->isolateCount < pBiDi->isolatesSize/sizeof(Isolate)-1);
++}
++
+ static void
+ resolveImplicitLevels(UBiDi *pBiDi,
+                       int32_t start, int32_t limit,
+@@ -2240,7 +2246,7 @@
+     /* look for the last char not a BN or LRE/RLE/LRO/RLO/PDF */
+     for(i=limit-1; i>start&&(DIRPROP_FLAG(dirProps[i])&MASK_BN_EXPLICIT); i--);
+     dirProp=dirProps[i];
+-    if((dirProp==LRI || dirProp==RLI) && limit<pBiDi->length) {
++    if((dirProp==LRI || dirProp==RLI) && limit<pBiDi->length && isolatesavailable(pBiDi)) {
+         pBiDi->isolateCount++;
+         pBiDi->isolates[pBiDi->isolateCount].stateImp=stateImp;
+         pBiDi->isolates[pBiDi->isolateCount].state=levState.state;


More information about the Libreoffice-commits mailing list