From 20b35b4a6f179d5c48583ec1ce668dc5a6f0c9e7 Mon Sep 17 00:00:00 2001 From: Honfika Date: Thu, 26 Dec 2013 16:00:20 +0100 Subject: [PATCH] Issue #449: loading from zlib stream throws EOFException instead of EndOfStreamException, catch both type of exceptions --- trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java index ec3bffa3a..b5bddb63c 100644 --- a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -58,6 +58,7 @@ import com.jpexs.helpers.streams.SeekableInputStream; import com.jpexs.helpers.utf8.Utf8Helper; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; +import java.io.EOFException; import java.io.IOException; import java.io.InputStream; import java.io.PrintStream; @@ -650,7 +651,7 @@ public class SWFInputStream extends InputStream { long pos = getPos(); try { tag = readTag(swf, level, pos, parseTags && !parallel, parallel, skipUnusualTags); - } catch (EndOfStreamException ex) { + } catch (EOFException | EndOfStreamException ex) { tag = null; } if (tag == null) {