[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263737 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Kostya Serebryany 2016-03-17 19:42:35 +00:00
parent 3d6e8550fd
commit 227603719a

View File

@ -92,6 +92,7 @@ void Fuzzer::DumpCurrentUnit(const char *Prefix) {
{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)