--- a/jdk/src/java.desktop/share/native/libfontmanager/layout/AlternateSubstSubtables.cpp Mon Apr 06 20:24:27 2015 +0000
+++ b/jdk/src/java.desktop/share/native/libfontmanager/layout/AlternateSubstSubtables.cpp Mon Apr 06 15:54:29 2015 -0700
@@ -53,6 +53,7 @@
Offset alternateSetTableOffset = SWAPW(alternateSetTableOffsetArray[coverageIndex]);
const LEReferenceTo<AlternateSetTable> alternateSetTable(base, success,
(const AlternateSetTable *) ((char *) this + alternateSetTableOffset));
+ if (!LE_SUCCESS(success)) return 0;
TTGlyphID alternate = SWAPW(alternateSetTable->alternateArray[0]);
if (filter == NULL || filter->accept(LE_SET_GLYPH(glyph, alternate), success)) {