diff options
| author | serpilliere <devnull@localhost> | 2014-08-21 09:23:53 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2014-08-21 09:23:53 +0200 |
| commit | b8ef731f42da12c857e6104aef47eb407d106809 (patch) | |
| tree | 609a13aec743dcd699723f8b3b6394c7c233d769 /example/test_dis.py | |
| parent | 495970a6c5665ec6a9ed8773601c6c11cb8ec041 (diff) | |
| download | miasm-b8ef731f42da12c857e6104aef47eb407d106809.tar.gz miasm-b8ef731f42da12c857e6104aef47eb407d106809.zip | |
Core: getbits use arch attrib (and can swap bytes); getbytes simply return bytes
Diffstat (limited to 'example/test_dis.py')
| -rw-r--r-- | example/test_dis.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/example/test_dis.py b/example/test_dis.py index 7ce0cc31..ee71b7a2 100644 --- a/example/test_dis.py +++ b/example/test_dis.py @@ -112,6 +112,9 @@ elif b.startswith('\x7fELF'): if bs is None or options.shiftoffset is not None: + + if options.shiftoffset is None: + options.shiftoffset = "0" shift = int(options.shiftoffset, 16) log.warning('fallback to string input (offset=%s)' % hex(shift)) bs = bin_stream_str(b, shift=shift) |