diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2017-03-30 16:24:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-30 16:24:26 +0200 |
| commit | 7947f33a61118c35a6b24aaac29337e2739216b4 (patch) | |
| tree | 6c281f7fc4efd326fb95151173b7847026a94f05 /example/symbol_exec/depgraph.py | |
| parent | cedf19e7d73ca8d603f2e1ed7f5306db27678e65 (diff) | |
| parent | e8916cf8cc44a0cc375af762b38798cb378b986c (diff) | |
| download | miasm-7947f33a61118c35a6b24aaac29337e2739216b4.tar.gz miasm-7947f33a61118c35a6b24aaac29337e2739216b4.zip | |
Merge pull request #509 from commial/fix/int-singleton
Fix/int singleton
Diffstat (limited to '')
| -rw-r--r-- | example/symbol_exec/depgraph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/symbol_exec/depgraph.py b/example/symbol_exec/depgraph.py index b4f793c0..0b971b15 100644 --- a/example/symbol_exec/depgraph.py +++ b/example/symbol_exec/depgraph.py @@ -5,7 +5,7 @@ import json from miasm2.analysis.machine import Machine from miasm2.analysis.binary import Container from miasm2.analysis.depgraph import DependencyGraph -from miasm2.expression.expression import ExprMem, ExprId, ExprInt32 +from miasm2.expression.expression import ExprMem, ExprId, ExprInt parser = ArgumentParser("Dependency grapher") parser.add_argument("filename", help="Binary to analyse") @@ -55,7 +55,7 @@ if args.rename_args: if arch == "x86_32": # StdCall example for i in xrange(4): - e_mem = ExprMem(ExprId("ESP_init") + ExprInt32(4 * (i + 1)), 32) + e_mem = ExprMem(ExprId("ESP_init") + ExprInt(4 * (i + 1), 32), 32) init_ctx[e_mem] = ExprId("arg%d" % i) # Disassemble the targeted function |