diff options
author | Kostya Serebryany <kcc@google.com> | 2016-10-18 18:38:08 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-10-18 18:38:08 +0000 |
commit | bb59ef77cafb7a900a977f9c6bc2a2a62c17ee8b (patch) | |
tree | a2152a7757804616929f4867c5e07542816dbc84 /llvm/lib/Fuzzer/FuzzerInternal.h | |
parent | 19601fa58772d1f3213e969bd8b2123d7918bf91 (diff) | |
download | bcm5719-llvm-bb59ef77cafb7a900a977f9c6bc2a2a62c17ee8b.tar.gz bcm5719-llvm-bb59ef77cafb7a900a977f9c6bc2a2a62c17ee8b.zip |
[libFuzzer] detect leaks after every run when executing fixed inputs (./fuzzer -runs=1000000 my-file)
llvm-svn: 284514
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerInternal.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h index 63bc4ec3034..15bf3e2b941 100644 --- a/llvm/lib/Fuzzer/FuzzerInternal.h +++ b/llvm/lib/Fuzzer/FuzzerInternal.h @@ -101,6 +101,8 @@ public: bool InFuzzingThread() const { return IsMyThread; } size_t GetCurrentUnitInFuzzingThead(const uint8_t **Data) const; + void TryDetectingAMemoryLeak(const uint8_t *Data, size_t Size, + bool DuringInitialCorpusExecution); private: void AlarmCallback(); @@ -116,8 +118,6 @@ private: void PrintStats(const char *Where, const char *End = "\n", size_t Units = 0); void PrintStatusForNewUnit(const Unit &U); void ShuffleCorpus(UnitVector *V); - void TryDetectingAMemoryLeak(const uint8_t *Data, size_t Size, - bool DuringInitialCorpusExecution); void AddToCorpus(const Unit &U); void CheckExitOnSrcPosOrItem(); |