diff options
Diffstat (limited to 'lib/asan/asan_win.cc')
-rw-r--r-- | lib/asan/asan_win.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/asan/asan_win.cc b/lib/asan/asan_win.cc index 2ef78cd15..87b36d9fc 100644 --- a/lib/asan/asan_win.cc +++ b/lib/asan/asan_win.cc @@ -37,6 +37,12 @@ int __asan_should_detect_stack_use_after_return() { return __asan_option_detect_stack_use_after_return; } +SANITIZER_INTERFACE_ATTRIBUTE +int __asan_should_detect_stack_use_after_scope() { + __asan_init(); + return __asan_option_detect_stack_use_after_scope; +} + // -------------------- A workaround for the abscence of weak symbols ----- {{{ // We don't have a direct equivalent of weak symbols when using MSVC, but we can // use the /alternatename directive to tell the linker to default a specific |