diff options
| author | w4kfu <gw4kfu@gmail.com> | 2017-06-22 14:01:40 -0400 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2018-01-16 12:56:14 +0100 |
| commit | d147d92892b294b31f1703685a3cf67b80cadb94 (patch) | |
| tree | ccfce65718aa802f8e240a9dbbdf89b9b6a9518b /example/jitter/msp430.py | |
| parent | 3e2364edcb6c4259782e251c236bad1090c8c9e0 (diff) | |
| download | miasm-d147d92892b294b31f1703685a3cf67b80cadb94.tar.gz miasm-d147d92892b294b31f1703685a3cf67b80cadb94.zip | |
append b to the opens mode ; Python on Windows makes a distinction between text and binary files
Diffstat (limited to 'example/jitter/msp430.py')
| -rwxr-xr-x | example/jitter/msp430.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/jitter/msp430.py b/example/jitter/msp430.py index b69f91c6..6dd67542 100755 --- a/example/jitter/msp430.py +++ b/example/jitter/msp430.py @@ -40,7 +40,7 @@ def jit_msp430_binary(args): myjit.jit.log_mn = args.log_mn myjit.jit.log_newbloc = args.log_newbloc - myjit.vm.add_memory_page(0, PAGE_READ | PAGE_WRITE, open(filepath).read()) + myjit.vm.add_memory_page(0, PAGE_READ | PAGE_WRITE, open(filepath, "rb").read()) myjit.add_breakpoint(0x1337, lambda _: exit(0)) |