blob: 6e1a6870baa0e32f85c13cd30c322f9db9b9c298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
https://ssl.icu-project.org/trac/ticket/8800
--- layout/LookupProcessor.cpp
+++ layout/LookupProcessor.cpp
@@ -201,7 +201,9 @@
if (requiredFeatureIndex != 0xFFFF) {
requiredFeatureTable = featureListTable->getFeatureTable(requiredFeatureIndex, &requiredFeatureTag);
- featureReferences += SWAPW(featureTable->lookupCount);
+ if (requiredFeatureTable) {
+ featureReferences += SWAPW(requiredFeatureTable->lookupCount);
+ }
}
lookupOrderArray = LE_NEW_ARRAY(le_uint16, featureReferences);
|