diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-12-07 13:11:53 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-12-07 13:11:53 +0100 |
| commit | 4001cc72efdce25c72870ccbf35557291570c571 (patch) | |
| tree | 9ca0c0d3f784a7008b8aa897ae3404b785832f6c | |
| parent | 37c877b20aa1f6b3bbe81a7c79e0fa206ef2d428 (diff) | |
| download | miasm-4001cc72efdce25c72870ccbf35557291570c571.tar.gz miasm-4001cc72efdce25c72870ccbf35557291570c571.zip | |
Example: fix exprmem ptr access
| -rw-r--r-- | example/ida/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/ida/utils.py b/example/ida/utils.py index 4f4f01fe..a64973f1 100644 --- a/example/ida/utils.py +++ b/example/ida/utils.py @@ -105,7 +105,7 @@ class TranslatorIDA(Translator): return out def from_ExprMem(self, expr): - ptr = self.from_expr(expr.arg) + ptr = self.from_expr(expr.ptr) size = idaapi.COLSTR('@' + str(expr.size), idaapi.SCOLOR_RPTCMT) out = '%s[%s]' % (size, ptr) return out |