srlabs / ziggy

A multi-fuzzer management utility for all of your Rust fuzzing needs 🧑‍🎤
Apache License 2.0
59 stars 6 forks source link

Ziggy should gracefully handle quitting in the middle of corpus minimization #7

Closed louismerlin closed 1 year ago

louismerlin commented 1 year ago

In order to avoid issues during a minimization that happens during a fuzzing run, the output/shared_corpus is moved to a directory called output/main_corpus, and the output of the minimization is set to output/shared_corpus/.

This creates an issue when the fuzzer is stopped in the middle of minimization: the shared corpus has changed directory, and the user needs to manually move it back to where it should be.

Fixing this issue could involve either:

I think we should first try the first option, and use one of the others if it fails.