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 /test/jitter/jmp_out_mem.py | |
| parent | eab809932871f91d6f4aa770fc321af9e156e0f5 (diff) | |
| download | miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.tar.gz miasm-02bbb30efea4980c9d133947cbbf69fb599071ad.zip | |
Support python2/python3
Diffstat (limited to 'test/jitter/jmp_out_mem.py')
| -rw-r--r-- | test/jitter/jmp_out_mem.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/jitter/jmp_out_mem.py b/test/jitter/jmp_out_mem.py index 93ae8304..ff137b84 100644 --- a/test/jitter/jmp_out_mem.py +++ b/test/jitter/jmp_out_mem.py @@ -1,4 +1,5 @@ import sys +from miasm2.core.utils import decode_hex from miasm2.jitter.csts import PAGE_READ, PAGE_WRITE, EXCEPT_ACCESS_VIOL from miasm2.analysis.machine import Machine @@ -17,7 +18,7 @@ jitter.init_stack() # mov eax, 0x42 # jmp 0x20 -data = "90b842000000eb20".decode('hex') +data = decode_hex("90b842000000eb20") # Will raise memory error at 0x40000028 |