]> source.dussan.org Git - poi.git/commitdiff
#58516 - Rare new aioobe in 3.13 on initialization of a handful of ppts
authorAndreas Beeker <kiwiwings@apache.org>
Thu, 29 Oct 2015 23:22:54 +0000 (23:22 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Thu, 29 Oct 2015 23:22:54 +0000 (23:22 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1711381 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/testcases/org/apache/poi/hslf/usermodel/TestBugs.java
test-data/slideshow/bug58516.ppt [new file with mode: 0644]

index 527b92e1c5e2f9024819cf616ecd58eabf202f75..bb150f7fdabf19cce1f4c6d46ae2626b2ebb7731 100644 (file)
@@ -35,8 +35,6 @@ import java.util.List;
 import java.util.Map;
 import java.util.Set;
 
-import junit.framework.AssertionFailedError;
-
 import org.apache.poi.POIDataSamples;
 import org.apache.poi.ddf.AbstractEscherOptRecord;
 import org.apache.poi.ddf.EscherArrayProperty;
@@ -51,11 +49,15 @@ import org.apache.poi.hslf.record.SlideListWithText;
 import org.apache.poi.hslf.record.SlideListWithText.SlideAtomsSet;
 import org.apache.poi.hslf.record.TextHeaderAtom;
 import org.apache.poi.sl.usermodel.PictureData.PictureType;
+import org.apache.poi.sl.usermodel.SlideShow;
+import org.apache.poi.sl.usermodel.SlideShowFactory;
 import org.apache.poi.util.LittleEndian;
 import org.apache.poi.util.StringUtil;
 import org.apache.poi.util.Units;
 import org.junit.Test;
 
+import junit.framework.AssertionFailedError;
+
 /**
  * Testcases for bugs entered in bugzilla
  * the Test name contains the bugzilla bug id
@@ -637,4 +639,9 @@ public final class TestBugs {
             inputStream.close();
         }
     }
+    
+    @Test
+    public void bug58516() throws IOException {
+        SlideShowFactory.create(_slTests.getFile("bug58516.ppt"));
+    }
 }
diff --git a/test-data/slideshow/bug58516.ppt b/test-data/slideshow/bug58516.ppt
new file mode 100644 (file)
index 0000000..b1cb7cd
Binary files /dev/null and b/test-data/slideshow/bug58516.ppt differ