Author: centic
Date: Thu Mar 24 04:42:34 2022
New Revision: 1899162

URL: http://svn.apache.org/viewvc?rev=1899162&view=rev
Log:
Fix issues found when fuzzing Apache POI via Jazzer

Do not assert when the next line will throw a proper exception anyway

Modified:
    
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java

Modified: 
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java?rev=1899162&r1=1899161&r2=1899162&view=diff
==============================================================================
--- 
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
 (original)
+++ 
poi/trunk/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java
 Thu Mar 24 04:42:34 2022
@@ -609,7 +609,6 @@ public final class HSLFSlideShowImpl ext
         CountingOS cos = new CountingOS();
         for (Record record : _records) {
             // all top level records are position dependent
-            assert (record instanceof PositionDependentRecord);
             PositionDependentRecord pdr = (PositionDependentRecord) record;
             int oldPos = pdr.getLastOnDiskOffset();
             int newPos = cos.size();
@@ -650,7 +649,6 @@ public final class HSLFSlideShowImpl ext
 
         try (HSLFSlideShowEncrypted encData = new 
HSLFSlideShowEncrypted(getDocumentEncryptionAtom())) {
             for (Record record : _records) {
-                assert (record instanceof PositionDependentRecord);
                 // We've already figured out their new location, and
                 // told them that
                 // Tell them of the positions of the other records though



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to