about summary refs log tree commit diff stats
path: root/example/disasm/full.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/disasm/full.py')
-rw-r--r--example/disasm/full.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/example/disasm/full.py b/example/disasm/full.py
index 5658c2c2..746d3ee4 100644
--- a/example/disasm/full.py
+++ b/example/disasm/full.py
@@ -42,7 +42,7 @@ parser.add_argument('-l', "--dontdis-retcall", action="store_true",
                     help="If set, disassemble only call destinations")
 parser.add_argument('-s', "--simplify", action="count",
                     help="Apply simplifications rules (liveness, graph simplification, ...)")
-parser.add_argument('-o', "--shiftoffset", default=None,
+parser.add_argument('-o', "--shiftoffset", default=0,
                     type=lambda x: int(x, 0),
                     help="Shift input binary by an offset")
 parser.add_argument('-a', "--try-disasm-all", action="store_true",
@@ -64,9 +64,8 @@ if args.verbose:
 
 log.info('Load binary')
 if args.rawbinary:
-    shift = args.shiftoffset if args.shiftoffset is not None else 0
     cont = Container.fallback_container(open(args.filename, "rb").read(),
-                                        None, addr=shift)
+                                        vm=None, addr=args.shiftoffset)
 else:
     with open(args.filename, "rb") as fdesc:
         cont = Container.from_stream(fdesc, addr=args.shiftoffset)