changeset 14250:95dca8033930

8139008: Better state table management Reviewed-by: prr, srl, mschoene
author vadim
date Tue, 20 Oct 2015 12:08:44 +0300
parents a44d40b5739a
children 371a178f9368
files src/java.desktop/share/native/libfontmanager/layout/StateTableProcessor2.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.desktop/share/native/libfontmanager/layout/StateTableProcessor2.cpp	Thu Sep 17 18:41:05 2015 -0700
+++ b/src/java.desktop/share/native/libfontmanager/layout/StateTableProcessor2.cpp	Tue Oct 20 12:08:44 2015 +0300
@@ -60,6 +60,7 @@
   entryTableOffset = SWAPL(stHeader->entryTableOffset);
 
   classTable = LEReferenceTo<LookupTable>(stHeader, success, classTableOffset);
+  if (LE_FAILURE(success)) return;
   format = SWAPW(classTable->format);
 
   stateArray = LEReferenceToArrayOf<EntryTableIndex2>(stHeader, success, stateArrayOffset, LE_UNBOUNDED_ARRAY);