diff options
| author | Camille Mougey <commial@gmail.com> | 2018-07-18 19:03:47 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-18 19:03:47 +0200 |
| commit | b531a52db0a966f0882e386e164a349ae581f956 (patch) | |
| tree | beac929c4c085dee0a484f50f9a0fdf92ea3d75b /example/ida | |
| parent | e789c705c064d8c1526fa76d85f174003dfaa9ab (diff) | |
| parent | 7c519fe7b3088adffd15d6bbbbd34f53f69cb862 (diff) | |
| download | miasm-b531a52db0a966f0882e386e164a349ae581f956.tar.gz miasm-b531a52db0a966f0882e386e164a349ae581f956.zip | |
Merge pull request #805 from serpilliere/fix_call_effects_arm
Fix call effects arm
Diffstat (limited to 'example/ida')
| -rw-r--r-- | example/ida/ctype_propagation.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/example/ida/ctype_propagation.py b/example/ida/ctype_propagation.py index e8b52e3e..3c8a745a 100644 --- a/example/ida/ctype_propagation.py +++ b/example/ida/ctype_propagation.py @@ -230,11 +230,14 @@ def get_ira_call_fixer(ira): stk_after = idc.GetSpd(instr.offset + instr.l) stk_diff = stk_after - stk_before print hex(stk_diff) - return [AssignBlock([ExprAff(self.ret_reg, ExprOp('call_func_ret', ad)), - ExprAff(self.sp, self.sp + ExprInt(stk_diff, self.sp.size)) - ], - instr - )] + call_assignblk = AssignBlock( + [ + ExprAff(self.ret_reg, ExprOp('call_func_ret', ad)), + ExprAff(self.sp, self.sp + ExprInt(stk_diff, self.sp.size)) + ], + instr + ) + return [call_assignblk], [] return iraCallStackFixer |