changeset 10613:4b83d5a90ed6

8065286: Fewer subtable substitutions Reviewed-by: bae, srl, mschoene
author prr
date Thu, 18 Dec 2014 11:18:53 -0800
parents 8007f5d79312
children 691af7ed6c3a
files src/share/native/sun/font/layout/MultipleSubstSubtables.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/font/layout/MultipleSubstSubtables.cpp	Thu Apr 09 13:04:27 2015 -0700
+++ b/src/share/native/sun/font/layout/MultipleSubstSubtables.cpp	Thu Dec 18 11:18:53 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) {