mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-31 19:54:37 +00:00
AS3 ClassCast fix
static const init in obfuscated code
This commit is contained in:
@@ -1288,7 +1288,7 @@ public class AVM2Code implements Serializable {
|
||||
if (!isKilled(reg, 0, end)) {
|
||||
for (int i = ip; i >= start; i--) {
|
||||
if (code.get(i).definition instanceof DupIns) {
|
||||
TreeItem v = (TreeItem) stack.pop();
|
||||
GraphTargetItem v = stack.pop();
|
||||
stack.push(new LocalRegTreeItem(ins, reg, v));
|
||||
stack.push(v);
|
||||
} else {
|
||||
@@ -1509,7 +1509,8 @@ public class AVM2Code implements Serializable {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
break;
|
||||
//In obfuscated code, SetLocal instructions comes first
|
||||
//break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -443,7 +443,6 @@ public class Graph {
|
||||
output.addAll(code.translatePart(localData, stack, start, end));
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(Graph.class.getName()).log(Level.SEVERE, "error during printgraph", ex);
|
||||
//ex.printStackTrace();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user