[all-commits] [llvm/llvm-project] 8b574a: [Darwin][UBSan][Sanitizer] abort_on_error ubsan te...

thetruestblue via All-commits all-commits at lists.llvm.org
Wed Apr 27 12:23:15 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b574a1e51339e0bf44cd4ded9c704e50ecb5850
      https://github.com/llvm/llvm-project/commit/8b574a1e51339e0bf44cd4ded9c704e50ecb5850
  Author: Blue Gaston <bgaston2 at apple.com>
  Date:   2022-04-27 (Wed, 27 Apr 2022)

  Changed paths:
    M compiler-rt/test/sanitizer_common/TestCases/Darwin/abort_on_error.cpp

  Log Message:
  -----------
  [Darwin][UBSan][Sanitizer] abort_on_error ubsan test fix for arm64

The current darwin abort_on_error test specifically tests for a division
by zero undefined behavior. However arm does not trap by default for this
behavior. x86 signals the abort, which is why the test passes on x86.
This patch updates the test to test for a case where the ubsan runtime
specifically calls Die() to trigger an abort by default.

rdar://92108564

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




More information about the All-commits mailing list