about summary refs log tree commit diff stats
path: root/example/jitter/msp430.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2018-01-16 19:58:24 +0100
committerGitHub <noreply@github.com>2018-01-16 19:58:24 +0100
commitb1aa02dffd6f321084d6b3c337ad42b131560e88 (patch)
treeccfce65718aa802f8e240a9dbbdf89b9b6a9518b /example/jitter/msp430.py
parent3e2364edcb6c4259782e251c236bad1090c8c9e0 (diff)
parentd147d92892b294b31f1703685a3cf67b80cadb94 (diff)
downloadmiasm-b1aa02dffd6f321084d6b3c337ad42b131560e88.tar.gz
miasm-b1aa02dffd6f321084d6b3c337ad42b131560e88.zip
Merge pull request #660 from serpilliere/fix_windows_open
Append b to the opens mode
Diffstat (limited to '')
-rwxr-xr-xexample/jitter/msp430.py2
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))