From 235679181b9500eaf4c1eea25b886c51d5b00789 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Fri, 11 Nov 2016 23:06:53 +0000 Subject: [libFuzzer] do not initialize parts of TracePC -- let them be initialized by the linker. Add no-msan attribute to the memcmp hook. llvm-svn: 286665 --- llvm/lib/Fuzzer/FuzzerTracePC.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/Fuzzer/FuzzerTracePC.cpp') diff --git a/llvm/lib/Fuzzer/FuzzerTracePC.cpp b/llvm/lib/Fuzzer/FuzzerTracePC.cpp index e61d5e0cdb6..f85b150a000 100644 --- a/llvm/lib/Fuzzer/FuzzerTracePC.cpp +++ b/llvm/lib/Fuzzer/FuzzerTracePC.cpp @@ -218,6 +218,9 @@ void TracePC::PrintCoverage() { // For cmp instructions the interesting value is a XOR of the parameters. // The interesting value is mixed up with the PC and is then added to the map. +#ifdef __clang__ // avoid gcc warning. +__attribute__((no_sanitize("memory"))) +#endif void TracePC::AddValueForMemcmp(void *caller_pc, const void *s1, const void *s2, size_t n) { if (!n) return; -- cgit v1.2.3