forked from OSchip/llvm-project
[libFuzzer] when re-running for lsan, don't look at the coverage
llvm-svn: 283411
This commit is contained in:
parent
edc2baddf8
commit
3b564e9765
|
@ -631,7 +631,7 @@ void Fuzzer::TryDetectingAMemoryLeak(const uint8_t *Data, size_t Size,
|
|||
// Run the target once again, but with lsan disabled so that if there is
|
||||
// a real leak we do not report it twice.
|
||||
EF->__lsan_disable();
|
||||
RunOne(Data, Size);
|
||||
ExecuteCallback(Data, Size);
|
||||
EF->__lsan_enable();
|
||||
if (!HasMoreMallocsThanFrees) return; // a leak is unlikely.
|
||||
if (NumberOfLeakDetectionAttempts++ > 1000) {
|
||||
|
|
Loading…
Reference in New Issue