keep remaining data, when tag is not fully parsed

This commit is contained in:
honfika@gmail.com
2015-06-14 14:10:37 +02:00
parent ba61e8af04
commit d00acbd7df
87 changed files with 1068 additions and 1737 deletions

View File

@@ -1484,6 +1484,10 @@ public class SWFInputStream implements AutoCloseable {
ret = new UnknownTag(swf, tag.getId(), data);
}
}
if (sis.available() > 0) {
ret.remainingData = sis.readBytesEx(sis.available(), "remaining");
}
} catch (IOException ex) {
logger.log(Level.SEVERE, "Error during tag reading. SWF: " + swf.getShortFileName() + " ID: " + tag.getId() + " name: " + tag.getName() + " pos: " + data.getPos(), ex);
ret = new TagStub(swf, tag.getId(), "ErrorTag", data, null);