From 6c0462caf844577d6da72f5a9c7b631879df0e71 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Sun, 8 Nov 2015 12:59:04 +0100 Subject: [PATCH] as3 execute: verify code before executing --- .../src/com/jpexs/decompiler/flash/abc/avm2/AVM2Code.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Code.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Code.java index 98f591b08..fd0223f1a 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Code.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/AVM2Code.java @@ -665,6 +665,10 @@ public class AVM2Code implements Cloneable { lda.localRegisters = arguments; lda.runtime = runtime; lda.runtimeVersion = runtimeVersoin; + for (AVM2Instruction ins : code) { + ins.definition.verify(lda, constants, ins); + } + while (pos < code.size()) { AVM2Instruction ins = code.get(pos); if (!ins.definition.execute(lda, constants, ins)) {