Source repository by Mr.Cupcake ( mscupcakegkill ): https://gitlab.com/mscupcakegkill/wrfuzz
This is Part 1 of the wrfuzz engineering notes, covering how the in-process runner recovers from faults without fork() , avoids per-iteration timer syscalls under PRoot, and catches 1-byte heap overflows in ~256 KB of memory without AddressSanitizer.
Execution harness ( run.cpp )
run_ex(buf, deadline) performs one execution.
Deadline check. If the deadline has already passed, it returns at once. RunResult defaults to Timeout status.
Reset. Clear the hit counters of the previous run through the touched list, so the cost is proportional to coverage, not map size. Reset the I2S ring and the recent-PC ring. Reset the guard-heap bump pointer.
Call the target.
sigsetjmp(jmp_env, 1) , then set in_target = 1 .
Call fuzz_target .
Run gpool_verify() , then clear in_target .
Fault path. The handler is installed with SA_SIGINFO | SA_NODEFER | SA_RESTART for SEGV , ABRT , FPE , ILL , BUS and TRAP .…