fix build
This commit is contained in:
parent
dacbbbd525
commit
b2feee86a4
@ -102,7 +102,7 @@ void libafl_add_jmp_hook(uint64_t (*gen)(target_ulong src, target_ulong dst, uin
|
|||||||
|
|
||||||
memcpy(&hook->helper_info, &libafl_exec_jmp_hook_info, sizeof(TCGHelperInfo));
|
memcpy(&hook->helper_info, &libafl_exec_jmp_hook_info, sizeof(TCGHelperInfo));
|
||||||
hook->helper_info.func = exec;
|
hook->helper_info.func = exec;
|
||||||
libafl_helper_table_add(&hook->helper_info);
|
//libafl_helper_table_add(&hook->helper_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
void libafl_gen_jmp(target_ulong src, target_ulong dst);
|
void libafl_gen_jmp(target_ulong src, target_ulong dst);
|
||||||
@ -116,12 +116,12 @@ void libafl_gen_jmp(target_ulong src, target_ulong dst)
|
|||||||
cur_id = hook->gen(src, dst, hook->data);
|
cur_id = hook->gen(src, dst, hook->data);
|
||||||
void* func = hook->exec;
|
void* func = hook->exec;
|
||||||
if (cur_id != (uint64_t)-1 && func) {
|
if (cur_id != (uint64_t)-1 && func) {
|
||||||
TCGv_i64 tmp0 = tcg_const_i64(src);
|
TCGv_i64 tmp0 = tcg_constant_i64(src);
|
||||||
TCGv_i64 tmp1 = tcg_const_i64(dst);
|
TCGv_i64 tmp1 = tcg_constant_i64(dst);
|
||||||
TCGv_i64 tmp2 = tcg_const_i64(cur_id);
|
TCGv_i64 tmp2 = tcg_constant_i64(cur_id);
|
||||||
TCGv_i64 tmp3 = tcg_const_i64(hook->data);
|
TCGv_i64 tmp3 = tcg_constant_i64(hook->data);
|
||||||
TCGTemp *tmp4[4] = { tcgv_i64_temp(tmp0), tcgv_i64_temp(tmp1), tcgv_i64_temp(tmp2), tcgv_i64_temp(tmp3) };
|
TCGTemp *tmp4[4] = { tcgv_i64_temp(tmp0), tcgv_i64_temp(tmp1), tcgv_i64_temp(tmp2), tcgv_i64_temp(tmp3) };
|
||||||
tcg_gen_callN(func, NULL,4, tmp4);
|
tcg_gen_callN(func, NULL, tmp4);
|
||||||
tcg_temp_free_i64(tmp0);
|
tcg_temp_free_i64(tmp0);
|
||||||
tcg_temp_free_i64(tmp1);
|
tcg_temp_free_i64(tmp1);
|
||||||
tcg_temp_free_i64(tmp2);
|
tcg_temp_free_i64(tmp2);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user