fix missing LibAFL markers (#54)

This commit is contained in:
Romain Malmain 2024-03-14 18:19:47 +01:00 committed by GitHub
parent 131dca34d4
commit 12025d58fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -649,6 +649,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
} }
tb->tc.size = gen_code_size; tb->tc.size = gen_code_size;
//// --- Begin LibAFL code ---
struct libafl_block_hook *hook = libafl_block_hooks; struct libafl_block_hook *hook = libafl_block_hooks;
while (hook) while (hook)
{ {
@ -656,6 +657,7 @@ TranslationBlock *tb_gen_code(CPUState *cpu,
hook->post_gen(hook->data, pc, tb->size); hook->post_gen(hook->data, pc, tb->size);
hook = hook->next; hook = hook->next;
} }
//// --- End LibAFL code ---
/* /*
* For CF_PCREL, attribute all executions of the generated code * For CF_PCREL, attribute all executions of the generated code