diff options
author | Kostya Serebryany <kcc@google.com> | 2016-03-17 19:42:35 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-03-17 19:42:35 +0000 |
commit | 23dbc390af8218f0a3b3035d5380cd7087aefecc (patch) | |
tree | b1ae99361027ec23c4b9fd9738dc26d4c96c7b90 /llvm | |
parent | 6979e74ce0f7f1fd856d66d687077f439e282277 (diff) | |
download | bcm5719-llvm-23dbc390af8218f0a3b3035d5380cd7087aefecc.tar.gz bcm5719-llvm-23dbc390af8218f0a3b3035d5380cd7087aefecc.zip |
[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
llvm-svn: 263737
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerLoop.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerLoop.cpp b/llvm/lib/Fuzzer/FuzzerLoop.cpp index 2bae76195e7..3492f7f5b27 100644 --- a/llvm/lib/Fuzzer/FuzzerLoop.cpp +++ b/llvm/lib/Fuzzer/FuzzerLoop.cpp @@ -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) |