[all-commits] [llvm/llvm-project] 785821: [asan] Enable detect_stack_use_after_return=1 by d...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Apr 28 21:08:34 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78582194361e4454e95d3af23367b81dd63b7943
      https://github.com/llvm/llvm-project/commit/78582194361e4454e95d3af23367b81dd63b7943
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2022-04-28 (Thu, 28 Apr 2022)

  Changed paths:
    M clang/docs/AddressSanitizer.rst
    M clang/docs/ReleaseNotes.rst
    M compiler-rt/lib/asan/asan_flags.inc

  Log Message:
  -----------
  [asan] Enable detect_stack_use_after_return=1 by default on Linux

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

Reviewed By: eugenis, kda, #sanitizers, hans

Differential Revision: https://reviews.llvm.org/D124057




More information about the All-commits mailing list