From 3b564e97655e0eb732219d5a4dec6c31a34f7aa9 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Wed, 5 Oct 2016 23:31:01 +0000 Subject: [PATCH] [libFuzzer] when re-running for lsan, don't look at the coverage llvm-svn: 283411 --- llvm/lib/Fuzzer/FuzzerLoop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp index 6c1f376..a177241 100644 --- a/llvm/lib/Fuzzer/FuzzerLoop.cpp +++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp @@ -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) { -- 2.7.4