summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerCorpus.h
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-12-17 12:27:49 +0000
committerDaniel Jasper <djasper@google.com>2016-12-17 12:27:49 +0000
commitfa1030e40b5febfd41af64e1a4114792b91e4bbc (patch)
tree156493dda1a649ede7338d88166d36667041f64e /llvm/lib/Fuzzer/FuzzerCorpus.h
parent607fa711b2c9023daea909b539322250a79dec8a (diff)
downloadbcm5719-llvm-fa1030e40b5febfd41af64e1a4114792b91e4bbc.tar.gz
bcm5719-llvm-fa1030e40b5febfd41af64e1a4114792b91e4bbc.zip
Revert "[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"
This reverts commit r289998. See comment: https://reviews.llvm.org/rL289998 llvm-svn: 290043
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerCorpus.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerCorpus.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerCorpus.h b/llvm/lib/Fuzzer/FuzzerCorpus.h
index 42b3d2482fa..663c5854b4c 100644
--- a/llvm/lib/Fuzzer/FuzzerCorpus.h
+++ b/llvm/lib/Fuzzer/FuzzerCorpus.h
@@ -59,12 +59,6 @@ class InputCorpus {
Res += !II->U.empty();
return Res;
}
- size_t MaxInputSize() const {
- size_t Res = 0;
- for (auto II : Inputs)
- Res = std::max(Res, II->U.size());
- return Res;
- }
bool empty() const { return Inputs.empty(); }
const Unit &operator[] (size_t Idx) const { return Inputs[Idx]->U; }
void AddToCorpus(const Unit &U, size_t NumFeatures, bool MayDeleteFile = false) {
OpenPOWER on IntegriCloud