AS1/2 ignoring disassembly errors

This commit is contained in:
Jindra Petk
2013-03-24 10:11:45 +01:00
parent 1d75954b5f
commit c2d8db8228
5 changed files with 6 additions and 5 deletions

View File

@@ -147,7 +147,7 @@ public class DefineButtonTag extends CharacterTag implements ASMSource, BoundedT
ReReadableInputStream rri = new ReReadableInputStream(new ByteArrayInputStream(baos.toByteArray()));
rri.setPos(prevLength);
return Action.removeNops(SWFInputStream.readActionList(rri, version, prevLength), version);
} catch (IOException ex) {
} catch (Exception ex) {
Logger.getLogger(DoActionTag.class.getName()).log(Level.SEVERE, null, ex);
return new ArrayList<Action>();
}

View File

@@ -110,7 +110,7 @@ public class DoActionTag extends Tag implements ASMSource {
ReReadableInputStream rri = new ReReadableInputStream(new ByteArrayInputStream(baos.toByteArray()));
rri.setPos(prevLength);
return Action.removeNops(SWFInputStream.readActionList(rri, version, prevLength), version);
} catch (IOException ex) {
} catch (Exception ex) {
Logger.getLogger(DoActionTag.class.getName()).log(Level.SEVERE, null, ex);
return new ArrayList<Action>();
}

View File

@@ -117,7 +117,7 @@ public class DoInitActionTag extends CharacterTag implements ASMSource {
ReReadableInputStream rri = new ReReadableInputStream(new ByteArrayInputStream(baos.toByteArray()));
rri.setPos(prevLength);
return Action.removeNops(SWFInputStream.readActionList(rri, version, prevLength), version);
} catch (IOException ex) {
} catch (Exception ex) {
Logger.getLogger(DoActionTag.class.getName()).log(Level.SEVERE, null, ex);
return new ArrayList<Action>();
}

View File

@@ -134,7 +134,7 @@ public class BUTTONCONDACTION implements ASMSource {
public List<Action> getActions(int version) {
try {
return Action.removeNops(SWFInputStream.readActionList(new ReReadableInputStream(new ByteArrayInputStream(actionBytes)), version, 0), version);
} catch (IOException ex) {
} catch (Exception ex) {
Logger.getLogger(BUTTONCONDACTION.class.getName()).log(Level.SEVERE, null, ex);
return new ArrayList<Action>();
}

View File

@@ -91,10 +91,11 @@ public class CLIPACTIONRECORD implements ASMSource {
return true;
}
@Override
public List<Action> getActions(int version) {
try {
return Action.removeNops(SWFInputStream.readActionList(new ReReadableInputStream(new ByteArrayInputStream(actionBytes)), version, 0), version);
} catch (IOException ex) {
} catch (Exception ex) {
Logger.getLogger(BUTTONCONDACTION.class.getName()).log(Level.SEVERE, null, ex);
return new ArrayList<Action>();
}