[PATCH] D48054: [libFuzzer] Mutation tracking and logging implemented

Jonathan Metzman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 11 14:12:56 PDT 2018


metzman added inline comments.


================
Comment at: lib/fuzzer/FuzzerMutate.cpp:530
         ToASCII(Data, NewSize);
-      CurrentMutatorSequence.push_back(M);
+      if (!EF->LLVMFuzzerCustomMutator) {
+        CurrentMutatorIdxSequence.push_back(MutatorIdx);
----------------
morehouse wrote:
> I don't like this solution.  If we don't want to support mutation stats for custom mutators, we should print an error and exit before any fuzzing happens.
> 
> Otherwise, we should make stats work with custom mutators too.
+1 for exit.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48054





More information about the llvm-commits mailing list