summaryrefslogtreecommitdiffstats
path: root/icu.8800.freeserif.crash.patch
blob: 04278d38e8d37248851c901f24166a6808461b89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -ru orig.icu/source/layout/LookupProcessor.cpp icu/source/layout/LookupProcessor.cpp
--- orig.icu/source/layout/LookupProcessor.cpp	2013-04-18 23:32:30.000000000 +0200
+++ icu/source/layout/LookupProcessor.cpp	2013-07-17 01:09:57.792635999 +0200
@@ -220,7 +220,9 @@
 
     if (requiredFeatureIndex != 0xFFFF) {
       requiredFeatureTable = featureListTable->getFeatureTable(featureListTable, requiredFeatureIndex, &requiredFeatureTag, success);
-      featureReferences += SWAPW(featureTable->lookupCount);
+      if (requiredFeatureTable.isValid()) {
+        featureReferences += SWAPW(requiredFeatureTable->lookupCount);
+      }
     }
 
     lookupOrderArray = LE_NEW_ARRAY(le_uint16, featureReferences);