Really cool! I recently happened to have a similar idea when I came across the rust-fuzz crate, which abstracts over afl, honggfuzz etc.<p>If you're interested, my notes are here: <a href="https://github.com/lachenmayer/insta-fuzz" rel="nofollow">https://github.com/lachenmayer/insta-fuzz</a><p>I ended up "cheating" a little bit by providing a valid JPEG header - I found that rust-fuzz seemed to take far too long to generate any valid JPEG at all by starting from eg. an empty file. But maybe I just wasn't patient enough, after all I was only running it on my laptop :)