Skip to content

Commit

Permalink
Fix qemu_coverage v2 (#2882)
Browse files Browse the repository at this point in the history
  • Loading branch information
rmalmain authored Jan 22, 2025
1 parent d9e8b59 commit 2cc2298
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions fuzzers/binary_only/qemu_coverage/src/fuzzer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ pub fn fuzz() {

let reset = |qemu: Qemu, buf: &[u8], len: GuestReg| -> Result<(), QemuRWError> {
unsafe {
let _ = qemu.write_mem(input_addr, buf);
qemu.write_mem(input_addr, buf)?;
qemu.write_reg(Regs::Pc, test_one_input_ptr)?;
qemu.write_reg(Regs::Sp, stack_ptr)?;
qemu.write_return_address(ret_addr)?;
Expand Down Expand Up @@ -213,11 +213,6 @@ pub fn fuzz() {
let len = len as GuestReg;
reset(qemu, buf, len).unwrap();

unsafe {
let ret = emulator.run(state, input);
log::warn!("ret = {ret:?}");
}

ExitKind::Ok
};

Expand Down

0 comments on commit 2cc2298

Please sign in to comment.