Fix bpkt/hook remove
This commit is contained in:
parent
fe9d8cb50d
commit
f9898d7db4
6
cpu.c
6
cpu.c
@ -155,9 +155,10 @@ int libafl_qemu_remove_breakpoint(uint64_t addr)
|
|||||||
|
|
||||||
*bp = (*bp)->next;
|
*bp = (*bp)->next;
|
||||||
r = 1;
|
r = 1;
|
||||||
}
|
} else {
|
||||||
bp = &(*bp)->next;
|
bp = &(*bp)->next;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,9 +199,10 @@ int libafl_qemu_remove_hook(uint64_t addr)
|
|||||||
|
|
||||||
*hk = (*hk)->next;
|
*hk = (*hk)->next;
|
||||||
r = 1;
|
r = 1;
|
||||||
}
|
} else {
|
||||||
hk = &(*hk)->next;
|
hk = &(*hk)->next;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user