[PATCH] D124057: [asan] Enable detect_stack_use_after_return=1 by default

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 18:36:40 PDT 2022


vitalybuka created this revision.
vitalybuka added reviewers: eugenis, kda.
Herald added a project: All.
vitalybuka requested review of this revision.
Herald added projects: clang, Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers, cfe-commits.

By default -fsanitize=address already compiles with this check,
why not use it. For compartiliby it can be disabled with env ASAN_OPTIONS=detect_stack_use_after_return=0.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124057

Files:
  clang/docs/AddressSanitizer.rst
  compiler-rt/lib/asan/asan_flags.inc
  compiler-rt/lib/asan/tests/asan_interface_test.cpp
  compiler-rt/test/asan/TestCases/Posix/gc-test.cpp
  compiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
  compiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
  compiler-rt/test/asan/TestCases/Windows/stack_use_after_return.cpp
  compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp
  compiler-rt/test/asan/TestCases/contiguous_container.cpp
  compiler-rt/test/asan/TestCases/handle_noreturn_bug.cpp
  compiler-rt/test/asan/TestCases/heavy_uar_test.cpp
  compiler-rt/test/asan/TestCases/intercept-rethrow-exception.cpp
  compiler-rt/test/asan/TestCases/invalid-pointer-pairs-subtract-success.cpp
  llvm/include/llvm/Transforms/Instrumentation/AddressSanitizerOptions.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124057.423782.patch
Type: text/x-patch
Size: 11158 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220420/de5cd436/attachment.bin>


More information about the llvm-commits mailing list