From 4addbe1c4d34dc47386ae5aa18a6bb4adb1f86df Mon Sep 17 00:00:00 2001 From: Stanislav Izmalkov Date: Wed, 3 Dec 2014 16:21:44 +0300 Subject: [PATCH] Made PushShortIns.execute properly handle short integer overflow --- .../flash/abc/avm2/instructions/stack/PushShortIns.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java index 1002d4040..532ab7c55 100644 --- a/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java +++ b/libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/abc/avm2/instructions/stack/PushShortIns.java @@ -38,7 +38,7 @@ public class PushShortIns extends InstructionDefinition implements PushIntegerTy @Override public void execute(LocalDataArea lda, AVM2ConstantPool constants, List arguments) { - lda.operandStack.push(arguments.get(0)); + lda.operandStack.push((long) ((Number) arguments.get(0)).shortValue()); } @Override