diff options
author | Remi Collet <fedora@famillecollet.com> | 2013-03-20 10:29:29 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2013-03-20 10:29:29 +0100 |
commit | 6deac027c98f5d99e1805f9ddc21ff2dbebe0fb7 (patch) | |
tree | 008990c48199f2d517fc9b1a4b47c6b162ec30ef /icu.icu5500.devicetablecrash.patch |
Diffstat (limited to 'icu.icu5500.devicetablecrash.patch')
-rw-r--r-- | icu.icu5500.devicetablecrash.patch | 11 |
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; |