diff options
author | Kostya Serebryany <kcc@google.com> | 2016-12-16 22:42:05 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-12-16 22:42:05 +0000 |
commit | be7003f99c778beb4917b0caa19c974b0b5bc6fb (patch) | |
tree | 824540b5bec2d77501b173d3de3720ad94f1ae5a /llvm/lib/Fuzzer/FuzzerMutate.cpp | |
parent | 7972bb7b875b275799b968cb57773aca54ba17fe (diff) | |
download | bcm5719-llvm-be7003f99c778beb4917b0caa19c974b0b5bc6fb.tar.gz bcm5719-llvm-be7003f99c778beb4917b0caa19c974b0b5bc6fb.zip |
[libFuzzer] add an experimental flag -experimental_len_control=1 that sets max_len to 1M and tries to increases the actual max sizes of mutations very gradually. Also remove a bit of dead code
llvm-svn: 289998
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerMutate.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerMutate.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerMutate.cpp b/llvm/lib/Fuzzer/FuzzerMutate.cpp index 80b7a5f961f..2b130cc291e 100644 --- a/llvm/lib/Fuzzer/FuzzerMutate.cpp +++ b/llvm/lib/Fuzzer/FuzzerMutate.cpp @@ -485,13 +485,6 @@ size_t MutationDispatcher::MutateImpl(uint8_t *Data, size_t Size, size_t MaxSize, const std::vector<Mutator> &Mutators) { assert(MaxSize > 0); - if (Size == 0) { - for (size_t i = 0; i < MaxSize; i++) - Data[i] = RandCh(Rand); - if (Options.OnlyASCII) - ToASCII(Data, MaxSize); - return MaxSize; - } assert(Size > 0); // Some mutations may fail (e.g. can't insert more bytes if Size == MaxSize), // in which case they will return 0. |