[all-commits] [llvm/llvm-project] a20794: [Sanitizer] Call Die() instead of Abort() when fai...

Enna1 via All-commits all-commits at lists.llvm.org
Mon Sep 16 18:53:40 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a20794b574803677e6407bdccef136d2e1622535
      https://github.com/llvm/llvm-project/commit/a20794b574803677e6407bdccef136d2e1622535
  Author: Enna1 <xumingjie.enna1 at bytedance.com>
  Date:   2024-09-17 (Tue, 17 Sep 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp

  Log Message:
  -----------
  [Sanitizer] Call Die() instead of Abort() when failed to reserve shadow memory range (#107833)

I grep the code and find that `Abort()` is only called in `Die()` when
the flag `abort_on_error` is set.
Thus, if reserving shadow memory range fails, `Die()` rather than
`Abort()` should be called. In this case, the flag `abort_on_error` will
be respected and the die callbacks will be called.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list