Merge pull request #37 from lunixbochs/master

add regress/memmap_segfault2.py
This commit is contained in:
Nguyen Anh Quynh 2015-08-25 22:20:13 +08:00
commit 19a68d3991

View file

@ -0,0 +1,6 @@
from unicorn import *
uc = Uc(UC_ARCH_X86, UC_MODE_32)
uc.mem_map(0x0000, 0x2000)
uc.mem_map(0x2000, 0x4000)
uc.mem_write(0x1000, 0x1004 * ' ')
print 'Not reached on x86_64 Linux.'