changeset 8423:2f24af3f9531

8139008: Better state table management Reviewed-by: prr, srl, mschoene
author vadim
date Tue, 20 Oct 2015 12:08:44 +0300
parents 900902aad468
children 20a3e7d579de
files src/share/native/sun/font/layout/StateTableProcessor2.cpp
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/native/sun/font/layout/StateTableProcessor2.cpp	Thu Apr 14 19:43:35 2016 +0100
+++ b/src/share/native/sun/font/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);