mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-30 23:21:04 +00:00
[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:
parent
3d6e8550fd
commit
227603719a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user