Skip to content

Commit

Permalink
The junit test failed with the original test-file (CDT_Data_Retention…
Browse files Browse the repository at this point in the history
…-PPT.ppt), so another check was necessary

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1569999 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
kiwiwings committed Feb 20, 2014
1 parent d72bd78 commit 49c69f0
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -63,14 +63,14 @@ protected StyleTextProp9Atom(byte[] source, int start, int len) {
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 );
Expand All @@ -79,7 +79,7 @@ protected StyleTextProp9Atom(byte[] source, int start, int len) {
if (0 != (textSiException & 0x40)) {
i += 2; //skip fBidi
}
if (i >= data.length) {
if (i+4 >= data.length) {
break;
}
}
Expand Down

0 comments on commit 49c69f0

Please sign in to comment.