OSDN Git Service

[libFuzzer] when re-running for lsan, don't look at the coverage
authorKostya Serebryany <kcc@google.com>
Wed, 5 Oct 2016 23:31:01 +0000 (23:31 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 5 Oct 2016 23:31:01 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283411 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerLoop.cpp

index 6c1f376..a177241 100644 (file)
@@ -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) {