mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-28 18:20:44 +00:00
AS1/2 deobfuscation fix.
This commit is contained in:
@@ -697,6 +697,7 @@ public class ActionListReader {
|
||||
ActionJump aJump = new ActionDeobfuscateJump(0);
|
||||
int jumpLength = aJump.getTotalActionLength();
|
||||
aJump.setAddress(a.getAddress());
|
||||
//FIXME! This offset can be larger than SI16 value!
|
||||
aJump.setJumpOffset(actionLengthWithHeader - jumpLength);
|
||||
a = aJump;
|
||||
actionLengthWithHeader = a.getTotalActionLength();
|
||||
|
||||
+1
-2
@@ -192,8 +192,7 @@ public class ActionDeobfuscator extends ActionDeobfuscatorSimple {
|
||||
ActionPush push = new ActionPush(0);
|
||||
push.values.clear();
|
||||
for (GraphTargetItem graphTargetItem : result.stack) {
|
||||
DirectValueActionItem dv = (DirectValueActionItem) graphTargetItem;
|
||||
push.values.add(dv.value);
|
||||
push.values.add(graphTargetItem.getResult());
|
||||
}
|
||||
push.setAddress(prevAction.getAddress());
|
||||
actions.addAction(i++, push);
|
||||
|
||||
+1
-2
@@ -155,8 +155,7 @@ public class ActionDeobfuscatorSimple implements SWFDecompilerListener {
|
||||
ActionPush push = new ActionPush(0);
|
||||
push.values.clear();
|
||||
for (GraphTargetItem graphTargetItem : result.stack) {
|
||||
DirectValueActionItem dv = (DirectValueActionItem) graphTargetItem;
|
||||
push.values.add(dv.value);
|
||||
push.values.add(graphTargetItem.getResult());
|
||||
}
|
||||
push.setAddress(prevAction.getAddress());
|
||||
actions.addAction(i++, push);
|
||||
|
||||
Reference in New Issue
Block a user