diff --git a/src/share/native/sun/font/layout/LookupTables.cpp b/src/share/native/sun/font/layout/LookupTables.cpp index 6e7aa27957e01bb6c84b1bbc7205d3571d437df5..d51d0d77284382d652f222c5ce5eb1b9c70d7c97 100644 --- a/src/share/native/sun/font/layout/LookupTables.cpp +++ b/src/share/native/sun/font/layout/LookupTables.cpp @@ -91,6 +91,10 @@ const LookupSingle *BinarySearchLookupTable::lookupSingle(const LETableReference LEReferenceTo entry(base, success, entries); LEReferenceTo trial(entry, success, extra); + if (!LE_SUCCESS(success)) { + return NULL; + } + if (SWAPW(trial->glyph) <= ttGlyph) { entry = trial; }