OSDN Git Service

[libFuzzer] add __attribute__((no_sanitize_memory)) to two functions that may be...
authorKostya Serebryany <kcc@google.com>
Thu, 17 Mar 2016 19:42:35 +0000 (19:42 +0000)
committerKostya Serebryany <kcc@google.com>
Thu, 17 Mar 2016 19:42:35 +0000 (19:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263737 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/FuzzerLoop.cpp

index 2bae761..3492f7f 100644 (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)