diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-02-25 11:09:54 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2019-03-05 16:52:49 +0100 |
| commit | 02bbb30efea4980c9d133947cbbf69fb599071ad (patch) | |
| tree | 3fea6826fcc5354840a27cb1dc99ff31eef81896 /example/jitter/x86_32.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| download | miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip | |
Support python2/python3
Diffstat (limited to 'example/jitter/x86_32.py')
| -rw-r--r-- | example/jitter/x86_32.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/x86_32.py b/example/jitter/x86_32.py index 5272f732..2a73a2ad 100644 --- a/example/jitter/x86_32.py +++ b/example/jitter/x86_32.py @@ -20,7 +20,7 @@ def code_sentinelle(jitter): myjit = Machine("x86_32").jitter(args.jitter) myjit.init_stack() -data = open(args.filename).read() +data = open(args.filename, 'rb').read() run_addr = 0x40000000 myjit.vm.add_memory_page(run_addr, PAGE_READ | PAGE_WRITE, data) |