diff options
author | Kostya Serebryany <kcc@google.com> | 2015-11-04 23:22:25 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-11-04 23:22:25 +0000 |
commit | e692621a9dc6eff696939a552fe7aa1fed4300ad (patch) | |
tree | 923baa6ac86011e7e8689574dd0d12eeb67d75d8 /llvm/lib/Fuzzer/FuzzerInternal.h | |
parent | 58a7e659d94d14fe6e78012d474691964f31a29a (diff) | |
download | bcm5719-llvm-e692621a9dc6eff696939a552fe7aa1fed4300ad.tar.gz bcm5719-llvm-e692621a9dc6eff696939a552fe7aa1fed4300ad.zip |
[libFuzzer] when choosing the next unit to mutate, give some preference to the most recent units (they are more likely to be interesting)
llvm-svn: 252097
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerInternal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h index d6e1cb85a23..0fa0b90b803 100644 --- a/llvm/lib/Fuzzer/FuzzerInternal.h +++ b/llvm/lib/Fuzzer/FuzzerInternal.h @@ -99,6 +99,7 @@ class Fuzzer { }; Fuzzer(UserSuppliedFuzzer &USF, FuzzingOptions Options); void AddToCorpus(const Unit &U) { Corpus.push_back(U); } + size_t ChooseUnitToMutate(); void Loop(); void ShuffleAndMinimize(); void InitializeTraceState(); |