changeset 12948:a4dd1239afd6

8103675: Better Binary searches Reviewed-by: srl, serb, mschoene
author prr
date Fri, 24 Jul 2015 09:44:32 -0700
parents a9dbc8a56c73
children 7b7c731a73d1
files src/java.desktop/share/native/libfontmanager/layout/LookupTables.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/native/libfontmanager/layout/LookupTables.cpp	Fri Jul 24 16:47:15 2015 +0100
+++ b/src/java.desktop/share/native/libfontmanager/layout/LookupTables.cpp	Fri Jul 24 09:44:32 2015 -0700
@@ -91,6 +91,10 @@
     LEReferenceTo<LookupSingle> entry(base, success, entries);
     LEReferenceTo<LookupSingle> trial(entry, success, extra);
 
+    if (!LE_SUCCESS(success)) {
+        return NULL;
+    }
+
     if (SWAPW(trial->glyph) <= ttGlyph) {
         entry = trial;
     }