Fixed code comment for x86 tests

This commit is contained in:
Quentin DUCASSE 2022-05-04 17:06:48 +02:00
parent a3ed8bbce5
commit 8ee9e89f01

View File

@ -999,7 +999,7 @@ static void test_x86_correct_address_in_small_jump_hook_callback(uc_engine *uc,
static void test_x86_correct_address_in_small_jump_hook(void) static void test_x86_correct_address_in_small_jump_hook(void)
{ {
uc_engine *uc; uc_engine *uc;
// movabs $0x7FFFFFFFFEFBEC9C, %rax // movabs $0x7F00, %rax
// jmp *%rax // jmp *%rax
char code[] = "\x48\xb8\x00\x7F\x00\x00\x00\x00\x00\x00\xff\xe0"; char code[] = "\x48\xb8\x00\x7F\x00\x00\x00\x00\x00\x00\xff\xe0";
@ -1041,7 +1041,7 @@ static void test_x86_correct_address_in_long_jump_hook_callback(uc_engine *uc, i
static void test_x86_correct_address_in_long_jump_hook(void) static void test_x86_correct_address_in_long_jump_hook(void)
{ {
uc_engine *uc; uc_engine *uc;
// movabs $0x7FFFFFFFFEFBEC9C, %rax // movabs $0x7FFFFFFFFFFFFF00, %rax
// jmp *%rax // jmp *%rax
char code[] = "\x48\xb8\x00\xff\xff\xff\xff\xff\xff\x7f\xff\xe0"; char code[] = "\x48\xb8\x00\xff\xff\xff\xff\xff\xff\x7f\xff\xe0";