AS2 deobfuscation fix

This commit is contained in:
honfika@gmail.com
2015-10-12 08:52:08 +02:00
parent 3475b63496
commit 1a26d9fa9b

View File

@@ -107,9 +107,27 @@ public class FastActionList implements Collection<ActionItem> {
size--;
actionItemMap.remove(item.action);
actionItemSet.remove(item);
replaceJumpTargets(item, next);
return next;
}
private void replaceJumpTargets(ActionItem target, ActionItem newTarget) {
ActionItem item = firstAction;
if (item == null) {
return;
}
do {
if (item.jumpTarget == target) {
item.jumpTarget = newTarget;
}
item = item.next;
} while (item != firstAction);
}
private void getContainerLastActions(ActionList actions, Map<Action, ActionItem> actionItemMap) {
ActionItem item = firstAction;
if (item == null) {