#include #include #include #define ADDR 0x00400000 #define SIZE 1024*64 #define OVERFLOW 1 int main() { uch uh; uint8_t *buf, *buf2; int i; uc_err err; err = uc_open (UC_ARCH_X86, UC_MODE_64, &uh); if (err) { printf ("uc_open %d\n", err); return 1; } err = uc_mem_map (uh, ADDR, SIZE); if (err) { printf ("uc_mem_map %d\n", err); return 1; } buf = calloc (SIZE*2, 1); buf2 = calloc (SIZE, 1); for (i=0;i