qemu driver new api

This commit is contained in:
Andrea Fioraldi
2021-04-14 18:24:55 +02:00
parent 5e72568a45
commit 6069cac313
2 changed files with 16 additions and 7 deletions

View File

@ -5,7 +5,7 @@
void afl_persistent_hook(struct x86_64_regs *regs, uint64_t guest_base,
uint8_t *input_buf, uint32_t input_buf_len) {
\
#define g2h(x) ((void *)((unsigned long)(x) + guest_base))
#define h2g(x) ((uint64_t)(x)-guest_base)