[llvm] r282284 - [libFuzzer] reset Counters (trace-pc-guard) before every run
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 23 13:04:14 PDT 2016
Author: kcc
Date: Fri Sep 23 15:04:13 2016
New Revision: 282284
URL: http://llvm.org/viewvc/llvm-project?rev=282284&view=rev
Log:
[libFuzzer] reset Counters (trace-pc-guard) before every run
Modified:
llvm/trunk/lib/Fuzzer/FuzzerTracePC.h
Modified: llvm/trunk/lib/Fuzzer/FuzzerTracePC.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.h?rev=282284&r1=282283&r2=282284&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.h (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.h Fri Sep 23 15:04:13 2016
@@ -47,6 +47,7 @@ class TracePC {
NumNewPCIDs = 0;
CounterMap.Reset();
ValueProfileMap.Reset();
+ memset(Counters, 0, sizeof(Counters));
}
void ResetGuards();
@@ -67,7 +68,6 @@ private:
NewPCIDs[(NumNewPCIDs++) % kMaxNewPCIDs] = PCID;
}
-
struct Module {
uintptr_t *Start, *Stop;
};
More information about the llvm-commits
mailing list