icu/icu.8800.freeserif.crash.patch
Eike Rathke fa01eb34f9 Resolves: rhbz#966141 various flaws in Layout Engine font processing
Applies ICU layout "patch", adapts existing patch and adds patch for
https://ssl.icu-project.org/trac/ticket/10143
2013-07-17 12:11:34 +02:00

15 lines
716 B
Diff

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);