LibAFL icon indicating copy to clipboard operation
LibAFL copied to clipboard

Restart after n target executions, instead of n fuzz_loops

Open domenukk opened this issue 3 years ago • 2 comments

So far, we have the option to restart an InProcess target after n rounds of fuzzing.

This means, however, that the number of target executions per round potentially grows after more testcases have been added to the corpus. Instead, we should offer the option to restart after a fixed amount of iterations, to make sure targets leaking memory won't explode over time. This could either be done by counting executions in the harness, and raising a signal accordingly (not taking it as objective), or by counting outside of the executor and retuning from the current stage.

domenukk avatar Oct 13 '22 08:10 domenukk

A solution may be to generate an error in the run function of Fuzzer when execution() > limit

andreafioraldi avatar Oct 18 '22 09:10 andreafioraldi

We can add something like Error::RestartAsap

andreafioraldi avatar Oct 18 '22 09:10 andreafioraldi