go-fuzz icon indicating copy to clipboard operation
go-fuzz copied to clipboard

Custom mutator for libFuzzer mode

Open turbolent opened this issue 4 years ago • 3 comments

I've read about custom mutators in LLVM's libFuzzer. Would it be possible to add support for it to go-fuzz's libFuzzer mode?

Would that basically involve adding a LLVMFuzzerCustomMutator function just like LLVMFuzzerTestOneInput is implemented, here: https://github.com/dvyukov/go-fuzz/blob/2fedac326dda3656b72e89836bd5721bc34b2966/go-fuzz-build/main.go#L868 ?

turbolent avatar May 05 '21 23:05 turbolent

Hi @turbolent,

Would it be possible to add support for it to go-fuzz's libFuzzer mode?

Adding new significant features to go-fuzz today makes little sense in the light of the fuzzing support in the standard library (you can find proposal and tracking issue in the Go issue tracker).

But if you want to do it locally, it should be possible.

Would that basically involve adding a LLVMFuzzerCustomMutator function just like LLVMFuzzerTestOneInput is implemented,

I guess so. Have you tried? Does it work?

dvyukov avatar May 06 '21 05:05 dvyukov