This commit is contained in:
Kevin Athey 2021-06-04 16:44:34 -07:00
parent d86ef4364f
commit 26b3ea224e
1 changed files with 5 additions and 5 deletions

View File

@ -401,12 +401,12 @@ static bool UNUSED __local_asan_dyninit = [] {
static void InitAsanOptionDetectStackUseAfterReturn() { static void InitAsanOptionDetectStackUseAfterReturn() {
__asan_option_detect_stack_use_after_return = __asan_option_detect_stack_use_after_return =
flags()->detect_stack_use_after_return; flags()->detect_stack_use_after_return;
if (!SANITIZER_WINDOWS) { #if !SANITIZER_WINDOWS
if (&__asan_detect_use_after_return_always) { if (&__asan_detect_use_after_return_always) {
CHECK_EQ(1, __asan_detect_use_after_return_always); CHECK_EQ(1, __asan_detect_use_after_return_always);
__asan_option_detect_stack_use_after_return = 1; __asan_option_detect_stack_use_after_return = 1;
}
} }
#endif // !SANITIZER_WINDOWS
} }
static void AsanInitInternal() { static void AsanInitInternal() {