summaryrefslogtreecommitdiffstats
path: root/icu.icu5500.devicetablecrash.patch
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2013-03-20 10:29:29 +0100
committerRemi Collet <fedora@famillecollet.com>2013-03-20 10:29:29 +0100
commit6deac027c98f5d99e1805f9ddc21ff2dbebe0fb7 (patch)
tree008990c48199f2d517fc9b1a4b47c6b162ec30ef /icu.icu5500.devicetablecrash.patch
compat-icu36: new package (for EL-5)HEADmaster
Diffstat (limited to 'icu.icu5500.devicetablecrash.patch')
-rw-r--r--icu.icu5500.devicetablecrash.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/icu.icu5500.devicetablecrash.patch b/icu.icu5500.devicetablecrash.patch
new file mode 100644
index 0000000..16ea5b7
--- /dev/null
+++ b/icu.icu5500.devicetablecrash.patch
@@ -0,0 +1,11 @@
+--- icu.orig/source/layout/DeviceTables.cpp 2006-10-18 09:05:20.000000000 +0100
++++ icu/source/layout/DeviceTables.cpp 2006-11-08 09:08:09.000000000 +0000
+@@ -22,7 +22,7 @@
+ le_uint16 format = SWAPW(deltaFormat) - 1;
+ le_int16 result = 0;
+
+- if (ppem >= start && ppem <= SWAPW(endSize)) {
++ if (ppem >= start && ppem <= SWAPW(endSize) && format < sizeof(fieldBits)/sizeof(fieldBits[0])) {
+ le_uint16 sizeIndex = ppem - start;
+ le_uint16 bits = fieldBits[format];
+ le_uint16 count = 16 / bits;