8065286: Fewer subtable substitutions
authorprr
Thu, 18 Dec 2014 10:43:02 -0800
changeset 29906 520942dee0f9
parent 29905 f976927bb286
child 29907 1eff5aab118f
8065286: Fewer subtable substitutions Reviewed-by: bae, srl, mschoene
jdk/src/java.desktop/share/native/libfontmanager/layout/MultipleSubstSubtables.cpp
--- a/jdk/src/java.desktop/share/native/libfontmanager/layout/MultipleSubstSubtables.cpp	Tue Nov 11 17:36:43 2014 +0300
+++ b/jdk/src/java.desktop/share/native/libfontmanager/layout/MultipleSubstSubtables.cpp	Thu Dec 18 10:43:02 2014 -0800
@@ -71,6 +71,9 @@
     if (coverageIndex >= 0 && coverageIndex < seqCount) {
         Offset sequenceTableOffset = SWAPW(sequenceTableOffsetArray[coverageIndex]);
         LEReferenceTo<SequenceTable>   sequenceTable(base, success, sequenceTableOffset);
+        if (LE_FAILURE(success)) {
+            return 0;
+        }
         le_uint16 glyphCount = SWAPW(sequenceTable->glyphCount);
 
         if (glyphCount == 0) {