mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-07-16 14:07:39 +00:00
revert regress/map_crash.c back to original code
This commit is contained in:
parent
79effb2df5
commit
ebaa542702
|
@ -1,5 +1,3 @@
|
||||||
.PHONY: all clean
|
|
||||||
|
|
||||||
CFLAGS += -I../include
|
CFLAGS += -I../include
|
||||||
LDFLAGS = -L.. -lunicorn
|
LDFLAGS = -L.. -lunicorn
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#define UC_BUG_WRITE_SIZE 13000
|
#define UC_BUG_WRITE_SIZE 13000
|
||||||
//#define UC_BUG_WRITE_ADDR 0x1000
|
#define UC_BUG_WRITE_ADDR 0x1000 // fix this by change this to 0x2000
|
||||||
#define UC_BUG_WRITE_ADDR 0x2000
|
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int size;
|
int size;
|
||||||
|
@ -23,8 +22,9 @@ int main() {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
memset (buf, 0, size);
|
memset (buf, 0, size);
|
||||||
uc_mem_map (uh, UC_BUG_WRITE_ADDR, size);
|
if (!uc_mem_map (uh, UC_BUG_WRITE_ADDR, size)) {
|
||||||
uc_mem_write (uh, UC_BUG_WRITE_ADDR, buf, size);
|
uc_mem_write (uh, UC_BUG_WRITE_ADDR, buf, size);
|
||||||
|
}
|
||||||
uc_close (&uh);
|
uc_close (&uh);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue