From 6c24cb70205e783a6441e86c8fdd4c87103d3c2b Mon Sep 17 00:00:00 2001 From: Andreas Beeker Date: Thu, 20 Feb 2014 00:03:42 +0000 Subject: [PATCH] The junit test failed with the original test-file (CDT_Data_Retention-PPT.ppt), so another check was necessary git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569999 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/org/apache/poi/hslf/record/StyleTextProp9Atom.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java b/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java index 9f8aec7f48..548027b76a 100644 --- a/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java +++ b/src/scratchpad/src/org/apache/poi/hslf/record/StyleTextProp9Atom.java @@ -63,14 +63,14 @@ public final class StyleTextProp9Atom extends RecordAtom { schemes.add(item); i += item.getRecordLength(); - if (i >= data.length) { + if (i+4 >= data.length) { break; } int textCfException9 = LittleEndian.getInt(data, i ); i += 4; //TODO analyze textCfException when have some test data - if (i >= data.length) { + if (i+4 >= data.length) { break; } int textSiException = LittleEndian.getInt(data, i ); @@ -79,7 +79,7 @@ public final class StyleTextProp9Atom extends RecordAtom { if (0 != (textSiException & 0x40)) { i += 2; //skip fBidi } - if (i >= data.length) { + if (i+4 >= data.length) { break; } }