[llvm] r289680 - [libFuzzer] disable msan for one more hook that reads target's data that might be uninitialized
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 10:13:03 PST 2016
Author: kcc
Date: Wed Dec 14 12:13:02 2016
New Revision: 289680
URL: http://llvm.org/viewvc/llvm-project?rev=289680&view=rev
Log:
[libFuzzer] disable msan for one more hook that reads target's data that might be uninitialized
Modified:
llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp?rev=289680&r1=289679&r2=289680&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerTracePC.cpp Wed Dec 14 12:13:02 2016
@@ -218,6 +218,9 @@ void TracePC::AddValueForMemcmp(void *ca
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;
More information about the llvm-commits
mailing list