fix regress/map_crash.c so it does not crash any more

This commit is contained in:
Nguyen Anh Quynh 2015-08-24 20:07:36 +08:00
parent 36f30bbf50
commit 79effb2df5
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,9 @@
.PHONY: all clean
CFLAGS+=-I../include
LDFLAGS=-L.. -lunicorn
TESTS=map_crash map_regs
TESTS = map_crash
all: $(TESTS)

View file

@ -4,7 +4,8 @@
#include <stdlib.h>
#define UC_BUG_WRITE_SIZE 13000
#define UC_BUG_WRITE_ADDR 0x1000
//#define UC_BUG_WRITE_ADDR 0x1000
#define UC_BUG_WRITE_ADDR 0x2000
int main() {
int size;