Open Jorropo opened 6 months ago
I think it should also be legal to fetch your own corpus (altho a bit pointless).
This is so if we have 10 interconnected fuzz test we don't need 10 snowflake fetch conversion.
I could have a single corpus(*testing.F)
function which fetch and add the corpus from all the 10 tests.
CC @golang/fuzzing
Proposal Details
I have two fuzz tests which test the same code, however one of them accepts binary data and the second one takes strings (my code has an ASCII and binary representation).
I was able to find new issues by seeding the corpus from the other test by converting the representation.
So I propose this to be added:
Expected usage:
It's unclear to me if
callback
should be retained, if it is retained we could run multiple fuzz tests in parallel and convert entries from one into one from the other on the fly (it would require some tricky-ish synchronisation and validation internally). I think for now this is not needed but we can add a comment hinting this might be a thing in the future. I don't think this would break anyone since you can't currently run more than one fuzz test together.