From 3855f189f1f80e364466d740d2fac6e086ece2fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=F8=EDk?= Date: Tue, 9 Jul 2013 15:30:23 +0200 Subject: [PATCH] Issue #172 Deobfuscation Constantpool fix --- 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 9b857c942..80bffcbad 100644 --- a/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java +++ b/trunk/src/com/jpexs/decompiler/flash/SWFInputStream.java @@ -782,7 +782,8 @@ public class SWFInputStream extends InputStream { br.append(((Action) ret.get(i)).getASMSource(new ArrayList(), new ArrayList(), cpool.constants, version, false)); br.append("\r\n"); } - pools = getConstantPool(listeners, new ActionGraphSource(ret, version, new HashMap(), new HashMap(), new HashMap()), ip, version); + ret = Action.removeNops(0, ret, version, 0); + pools = getConstantPool(listeners, new ActionGraphSource(ret, version, new HashMap(), new HashMap(), new HashMap()), 0, version); if (pools.size() == 1) { Action.setConstantPool(ret, pools.get(0));