[libFuzzer] disable msan for one more hook that reads target's data that might be...
authorKostya Serebryany <kcc@google.com>
Wed, 14 Dec 2016 18:13:02 +0000 (18:13 +0000)
committerKostya Serebryany <kcc@google.com>
Wed, 14 Dec 2016 18:13:02 +0000 (18:13 +0000)
llvm-svn: 289680

llvm/lib/Fuzzer/FuzzerTracePC.cpp

index 7e7a914..781bd56 100644 (file)
@@ -218,6 +218,9 @@ void TracePC::AddValueForMemcmp(void *caller_pc, const void *s1, const void *s2,
   TPC.HandleValueProfile((PC & 4095) | (Idx << 12));
 }
 
+#ifdef __clang__  // avoid gcc warning.
+__attribute__((no_sanitize("memory")))
+#endif
 void TracePC::AddValueForStrcmp(void *caller_pc, const char *s1, const char *s2,
                               size_t n) {
   if (!n) return;