From 4b98a7fae767d8f124ddec6e1958d1b27cf0aa81 Mon Sep 17 00:00:00 2001 From: "honfika@gmail.com" Date: Tue, 6 Oct 2015 19:10:32 +0200 Subject: [PATCH] actionif + action jump target calcualtion simplified 3 --- .../flash/action/deobfuscation/ActionDeobfuscator.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java index ce8cc11aa..f67a2c070 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/action/deobfuscation/ActionDeobfuscator.java @@ -395,7 +395,7 @@ public class ActionDeobfuscator extends ActionDeobfuscatorSimple { if (action instanceof ActionJump) { ActionJump jump = (ActionJump) action; - long address = jump.getAddress() + jump.getTotalActionLength() + jump.getJumpOffset(); + long address = jump.getTargetAddress(); idx = actions.getIndexByAddress(address); if (idx == -1) { throw new TranslateException("Jump target not found: " + address); @@ -409,7 +409,7 @@ public class ActionDeobfuscator extends ActionDeobfuscatorSimple { } if (EcmaScript.toBoolean(stack.pop().getResult())) { - long address = aif.getAddress() + aif.getTotalActionLength() + aif.getJumpOffset(); + long address = aif.getTargetAddress(); idx = actions.getIndexByAddress(address); if (idx == -1) { throw new TranslateException("If target not found: " + address);