[llvm] r263737 - [libFuzzer] add __attribute__((no_sanitize_memory)) to two functions that may be called from signal handler(s) or from msan. This will hopefully avoid msan false reports which I can't reproduce
Kostya Serebryany via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 12:42:35 PDT 2016
Author: kcc
Date: Thu Mar 17 14:42:35 2016
New Revision: 263737
URL: http://llvm.org/viewvc/llvm-project?rev=263737&view=rev
Log:
[libFuzzer] add __attribute__((no_sanitize_memory)) to two functions that may be called from signal handler(s) or from msan. This will hopefully avoid msan false reports which I can't reproduce
Modified:
llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
Modified: llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp?rev=263737&r1=263736&r2=263737&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerLoop.cpp Thu Mar 17 14:42:35 2016
@@ -92,6 +92,7 @@ void Fuzzer::DumpCurrentUnit(const char
{CurrentUnitData, CurrentUnitData + CurrentUnitSize}, Prefix);
}
+__attribute__((no_sanitize_memory))
void Fuzzer::DeathCallback() {
if (!CurrentUnitSize) return;
Printf("DEATH:\n");
@@ -133,6 +134,7 @@ void Fuzzer::InterruptCallback() {
_Exit(0); // Stop right now, don't perform any at-exit actions.
}
+__attribute__((no_sanitize_memory))
void Fuzzer::AlarmCallback() {
assert(Options.UnitTimeoutSec > 0);
if (!CurrentUnitSize)
More information about the llvm-commits
mailing list