Skip to content

Commit

Permalink
[asan] Don't enable detect_stack_use_after_return on Windows
Browse files Browse the repository at this point in the history
It's not clear how ready it's there.
  • Loading branch information
vitalybuka committed Apr 23, 2022
1 parent ff25f69 commit 72e00c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clang/docs/ReleaseNotes.rst
Expand Up @@ -174,7 +174,7 @@ Non-comprehensive list of changes in this release
- Remove anonymous tag locations.
- Beautify dump format, add indent for nested struct and struct members.
- Previously disabled sanitizer options now enabled by default:
- ASAN_OPTIONS=detect_stack_use_after_return=1.
- ASAN_OPTIONS=detect_stack_use_after_return=1 (except Windows).
- MSAN_OPTIONS=poison_in_dtor=1.

New Compiler Flags
Expand Down
2 changes: 1 addition & 1 deletion compiler-rt/lib/asan/asan_flags.inc
Expand Up @@ -49,7 +49,7 @@ ASAN_FLAG(
"to find more errors.")
ASAN_FLAG(bool, replace_intrin, true,
"If set, uses custom wrappers for memset/memcpy/memmove intrinsics.")
ASAN_FLAG(bool, detect_stack_use_after_return, true,
ASAN_FLAG(bool, detect_stack_use_after_return, !SANITIZER_WINDOWS,
"Enables stack-use-after-return checking at run-time.")
ASAN_FLAG(int, min_uar_stack_size_log, 16, // We can't do smaller anyway.
"Minimum fake stack size log.")
Expand Down

0 comments on commit 72e00c4

Please sign in to comment.