From cc9265c12f1d367b16634aa809f27f2c67e3263a Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Tue, 9 Jan 2007 14:45:19 +0000 Subject: [PATCH] rename patch as upstream name --- icu.icu5557.safety.patch | 14 ++++++++++++++ icu.spec | 6 +++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 icu.icu5557.safety.patch diff --git a/icu.icu5557.safety.patch b/icu.icu5557.safety.patch new file mode 100644 index 0000000..682caa1 --- /dev/null +++ b/icu.icu5557.safety.patch @@ -0,0 +1,14 @@ +--- icu.orig/source/layout/CoverageTables.cpp 2007-01-09 12:57:41.000000000 +0000 ++++ icu/source/layout/CoverageTables.cpp 2007-01-09 12:59:09.000000000 +0000 +@@ -44,6 +44,11 @@ + le_uint16 count = SWAPW(glyphCount); + le_uint8 bit = OpenTypeUtilities::highBit(count); + le_uint16 power = 1 << bit; ++ ++ if (count == 0) { ++ return -1; ++ } ++ + le_uint16 extra = count - power; + le_uint16 probe = power; + le_uint16 index = 0; diff --git a/icu.spec b/icu.spec index c04bc4c..2f6917f 100644 --- a/icu.spec +++ b/icu.spec @@ -21,7 +21,7 @@ Patch8: icu.icu5465.telegu.patch Patch9: icu.icu5488.assamese.patch Patch10: icu.icu5500.devicetablecrash.patch Patch11: icu.icu5501.sinhala.biggerexpand.patch -Patch12: icu.icuXXXX.safety.patch +Patch12: icu.icu5557.safety.patch Patch13: icu.icu5506.multiplevowels.patch %description @@ -72,7 +72,7 @@ Group: Documentation %patch9 -p1 -b .icu5488.assamese.patch %patch10 -p1 -b .icu5500.devicetablecrash.patch %patch11 -p1 -b .icu5501.sinhala.biggerexpand.patch -%patch12 -p1 -b .icuXXXX.safety.patch +%patch12 -p1 -b .icu5557.safety.patch %patch13 -p1 -b .icu5506.multiplevowels.patch %build @@ -155,7 +155,7 @@ rm -rf $RPM_BUILD_ROOT %changelog * Thu Jan 09 2007 Caolan McNamara - 3.6-14 -- Related: rhbz#216089 add icu.icuXXXX.safety.patch +- Related: rhbz#216089 add icu.icu5557.safety.patch * Thu Dec 21 2006 Caolan McNamara - 3.6-13 - Resolves: rhbz#220433 modify icu.icu5431.malayam.patch