diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-02-11 08:59:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-02-11 08:59:57 +0000 |
commit | 5e677bb910865d675482d9057059c0818a7015f5 (patch) | |
tree | 5f05142d1189cea392033fb6294bcbadc3b32878 /icu/icu4c.8320.freeserif.crash.patch | |
parent | gcc#47679 needs more magic (diff) | |
download | core-5e677bb910865d675482d9057059c0818a7015f5.tar.gz core-5e677bb910865d675482d9057059c0818a7015f5.zip |
icu#8320 even more things wrong with freeserif that can crash icu
Diffstat (limited to 'icu/icu4c.8320.freeserif.crash.patch')
-rw-r--r-- | icu/icu4c.8320.freeserif.crash.patch | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/icu/icu4c.8320.freeserif.crash.patch b/icu/icu4c.8320.freeserif.crash.patch index 611fbbd83a69..7e596c033744 100644 --- a/icu/icu4c.8320.freeserif.crash.patch +++ b/icu/icu4c.8320.freeserif.crash.patch @@ -10,7 +10,7 @@ le_uint32 lookupOrderCount; --- misc/icu/source/layout/LookupProcessor.cpp 2011-02-02 12:29:54.369077099 +0000 +++ misc/build/icu/source/layout/LookupProcessor.cpp 2011-02-02 12:31:54.215503036 +0000 -@@ -62,6 +64,10 @@ +@@ -62,6 +62,10 @@ if (selectMask != 0) { const LookupTable *lookupTable = lookupListTable->getLookupTable(lookup); @@ -21,7 +21,7 @@ le_uint16 lookupFlags = SWAPW(lookupTable->lookupFlags); glyphIterator.reset(lookupFlags, selectMask); -@@ -96,6 +102,9 @@ +@@ -96,6 +100,9 @@ for (le_uint16 lookup = 0; lookup < lookupCount; lookup += 1) { le_uint16 lookupListIndex = SWAPW(featureTable->lookupListIndexArray[lookup]); @@ -31,7 +31,7 @@ lookupSelectArray[lookupListIndex] |= featureMask; lookupOrderArray[store++] = lookupListIndex; } -@@ -106,7 +115,7 @@ +@@ -106,7 +113,7 @@ LookupProcessor::LookupProcessor(const char *baseAddress, Offset scriptListOffset, Offset featureListOffset, Offset lookupListOffset, LETag scriptTag, LETag languageTag, const FeatureMap *featureMap, le_int32 featureMapCount, le_bool orderFeatures) @@ -40,7 +40,7 @@ lookupOrderArray(NULL), lookupOrderCount(0) { const ScriptListTable *scriptListTable = NULL; -@@ -146,6 +155,8 @@ +@@ -146,6 +153,8 @@ lookupSelectArray[i] = 0; } @@ -49,3 +49,14 @@ le_int32 count, order = 0; le_int32 featureReferences = 0; const FeatureTable *featureTable = NULL; +@@ -162,6 +171,10 @@ + le_uint16 featureIndex = SWAPW(langSysTable->featureIndexArray[feature]); + + featureTable = featureListTable->getFeatureTable(featureIndex, &featureTag); ++ ++ if (!featureTable) ++ continue; ++ + featureReferences += SWAPW(featureTable->lookupCount); + } + |