diff options
author | Kostya Serebryany <kcc@google.com> | 2016-04-18 22:50:39 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-04-18 22:50:39 +0000 |
commit | ebb932d0607bd79fa63e0eddd2e014243e756949 (patch) | |
tree | 8453f27adce30aa56800a70af94fee736f475a2c /llvm/lib/Fuzzer/FuzzerInternal.h | |
parent | 43d1e453479fe60046c06c83c7020a2a52ce9748 (diff) | |
download | bcm5719-llvm-ebb932d0607bd79fa63e0eddd2e014243e756949.tar.gz bcm5719-llvm-ebb932d0607bd79fa63e0eddd2e014243e756949.zip |
[libFuzzer] try to print correct time in seconds when reporting a timeout. Don't report timeouts while still loading the corpus.
llvm-svn: 266693
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 7200cbe9d3d..50402f8702f 100644 --- a/llvm/lib/Fuzzer/FuzzerInternal.h +++ b/llvm/lib/Fuzzer/FuzzerInternal.h @@ -391,8 +391,8 @@ private: void DumpCurrentUnit(const char *Prefix); void DeathCallback(); - uint8_t *CurrentUnitData; - size_t CurrentUnitSize; + uint8_t *CurrentUnitData = nullptr; + size_t CurrentUnitSize = 0; size_t TotalNumberOfRuns = 0; size_t TotalNumberOfExecutedTraceBasedMutations = 0; |