about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorserpilliere <serpilliere@users.noreply.github.com>2017-04-27 17:17:31 +0200
committerGitHub <noreply@github.com>2017-04-27 17:17:31 +0200
commit62fdff3fc0872f9e41e4635abbe179e03e53df9b (patch)
tree250be9494a78dfd9558b88ba95d084355f6d20f4
parent53dfa69245b2ad9cdafe8ac7bec7dadba1726707 (diff)
parenteead4b08a16d0949a4abdd5802d283f86f7b7c31 (diff)
downloadmiasm-62fdff3fc0872f9e41e4635abbe179e03e53df9b.tar.gz
miasm-62fdff3fc0872f9e41e4635abbe179e03e53df9b.zip
Merge pull request #547 from carolineLe/fix_ret_cdecl
arch/x86/jit.py: Update pc as well as EIP in ret_cdecl
-rw-r--r--miasm2/arch/x86/jit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/miasm2/arch/x86/jit.py b/miasm2/arch/x86/jit.py
index 1329d7a4..6d9be8ac 100644
--- a/miasm2/arch/x86/jit.py
+++ b/miasm2/arch/x86/jit.py
@@ -127,7 +127,7 @@ class jitter_x86_32(jitter):
         return ret_ad, args
 
     def func_ret_cdecl(self, ret_addr, ret_value=None):
-        self.cpu.EIP = ret_addr
+        self.pc = self.cpu.EIP = ret_addr
         if ret_value is not None:
             self.cpu.EAX = ret_value