[PATCH] D30682: [fuzzer] Don't crash if LLVMFuzzerMutate was called by CustomCrossOver

Kostya Serebryany via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 7 12:22:05 PST 2017


kcc accepted this revision.
kcc added a comment.
This revision is now accepted and ready to land.

LGTM with a nit



================
Comment at: lib/Fuzzer/FuzzerMutate.h:146
   std::vector<uint8_t> MutateInPlaceHere;
+  // Custom CrossOver needs own buffer as implementation can call
+  // LLVMFuzzerMutate which can resize MutateInPlaceHere.
----------------
CustomCrossOver needs its own buffer as a custom implementation may call
LLVMFuzzerMutate, which in turn may resize MutateInPlaceHere


https://reviews.llvm.org/D30682





More information about the llvm-commits mailing list