AS3 ClassCast fix

static const init in obfuscated code
This commit is contained in:
Jindra Petk
2013-03-25 21:29:24 +01:00
parent f843082a97
commit 4e8eddfbbc
2 changed files with 3 additions and 3 deletions

View File

@@ -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;
}
}
}