From c633ac53142196052ff9344c78d1722a97c41b40 Mon Sep 17 00:00:00 2001 From: Ryan Hileman Date: Tue, 25 Aug 2015 07:17:20 -0700 Subject: [PATCH] add regress/memmap_segfault2.py --- regress/memmap_segfault2.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 regress/memmap_segfault2.py diff --git a/regress/memmap_segfault2.py b/regress/memmap_segfault2.py new file mode 100644 index 00000000..39dd9a64 --- /dev/null +++ b/regress/memmap_segfault2.py @@ -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.'