[llvm] r283411 - [libFuzzer] when re-running for lsan, don't look at the coverage

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 16:31:01 PDT 2016


Author: kcc
Date: Wed Oct  5 18:31:01 2016
New Revision: 283411

URL: http://llvm.org/viewvc/llvm-project?rev=283411&view=rev
Log:
[libFuzzer] when re-running for lsan, don't look at the coverage

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=283411&r1=283410&r2=283411&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Wed Oct  5 18:31:01 2016
@@ -631,7 +631,7 @@ void Fuzzer::TryDetectingAMemoryLeak(con
   // 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) {




More information about the llvm-commits mailing list