Add test case to Makefile and .gitignore. Add disassembly.

This commit is contained in:
practicalswift 2015-11-15 17:31:06 +01:00
parent c8fe68fb3d
commit 5b34660b3f
3 changed files with 7 additions and 0 deletions

1
.gitignore vendored
View File

@ -111,6 +111,7 @@ eflags_nosync
00opcode_uc_crash
eflags_noset
mem_map_large
invalid_read_in_cpu_tb_exec
#################

View File

@ -16,6 +16,7 @@ TESTS += eflags_nosync
TESTS += 00opcode_uc_crash
TESTS += eflags_noset
TESTS += mem_map_large
TESTS += invalid_read_in_cpu_tb_exec
all: $(TESTS)

View File

@ -4,6 +4,11 @@ static void hook_block(uc_engine *uc, uint64_t address, uint32_t size, void *use
printf("hook_block(…)\n");
}
/*
* Disassembly according to capstone:
* add byte ptr [rip - 1], 0x30
* jmp 0x1000000
*/
#define BINARY "\x80\x05\xff\xff\xff\xff\x30\xeb\xf7\x30"
#define MEMORY_SIZE 2 * 1024 * 1024
#define STARTING_ADDRESS 0x1000000