diff options
author | Dominik Stadler <centic@apache.org> | 2022-03-24 04:42:34 +0000 |
---|---|---|
committer | Dominik Stadler <centic@apache.org> | 2022-03-24 04:42:34 +0000 |
commit | bfd2266779db3d5493eaf5443cbd9aea784f7508 (patch) | |
tree | 22cb25aaccb9af8a3f6b426b85e2f1bdcc41b3e0 /poi-scratchpad/src | |
parent | 67b3e09618538eb3405875227032f1d8641966e7 (diff) | |
download | poi-bfd2266779db3d5493eaf5443cbd9aea784f7508.tar.gz poi-bfd2266779db3d5493eaf5443cbd9aea784f7508.zip |
Fix issues found when fuzzing Apache POI via Jazzer
Do not assert when the next line will throw a proper exception anyway
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1899162 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-scratchpad/src')
-rw-r--r-- | poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java index 8a0dc66958..904e9e729c 100644 --- a/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java +++ b/poi-scratchpad/src/main/java/org/apache/poi/hslf/usermodel/HSLFSlideShowImpl.java @@ -609,7 +609,6 @@ public final class HSLFSlideShowImpl extends POIDocument implements Closeable { 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 extends POIDocument implements Closeable { 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 |