diff options
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMutate.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerMutate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMutate.h b/llvm/lib/Fuzzer/FuzzerMutate.h index 8c8fb3fd74c..9c946eab9f7 100644 --- a/llvm/lib/Fuzzer/FuzzerMutate.h +++ b/llvm/lib/Fuzzer/FuzzerMutate.h @@ -88,7 +88,7 @@ public: void ClearAutoDictionary(); void PrintRecommendedDictionary(); - void SetCorpus(const InputCorpus *Corpus) { this->Corpus = Corpus; } + void SetCorpus(InputCorpus *Corpus) { this->Corpus = Corpus; } Random &GetRand() { return Rand; } @@ -141,7 +141,7 @@ private: DictionaryEntry CmpDictionaryEntriesDeque[kCmpDictionaryEntriesDequeSize]; size_t CmpDictionaryEntriesDequeIdx = 0; - const InputCorpus *Corpus = nullptr; + InputCorpus *Corpus = nullptr; std::vector<uint8_t> MutateInPlaceHere; // CustomCrossOver needs its own buffer as a custom implementation may call // LLVMFuzzerMutate, which in turn may resize MutateInPlaceHere. |