diff options
author | Justin Bogner <mail@justinbogner.com> | 2017-02-01 07:54:36 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2017-02-01 07:54:36 +0000 |
commit | 7cebbf504deb1a07c7f99b69d8c8fb0f8f778d43 (patch) | |
tree | 145e1b1c845405ba92b9b722a4af4afd5e7d0ad6 | |
parent | 55845b4a38ec980454781b2b37fcf4a92ebe48ce (diff) |
[asan] Support handle_sigfpe on Darwin
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@293746 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/sanitizer_common/sanitizer_mac.cc | 2 | ||||
-rw-r--r-- | test/sanitizer_common/TestCases/Posix/fpe.cc (renamed from test/sanitizer_common/TestCases/Linux/fpe.cc) | 0 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_mac.cc b/lib/sanitizer_common/sanitizer_mac.cc index b4f8ab5e3..a614bd7ce 100644 --- a/lib/sanitizer_common/sanitizer_mac.cc +++ b/lib/sanitizer_common/sanitizer_mac.cc @@ -402,6 +402,8 @@ bool IsHandledDeadlySignal(int signum) { return true; if (common_flags()->handle_sigill && signum == SIGILL) return true; + if (common_flags()->handle_sigfpe && signum == SIGFPE) + return true; return (signum == SIGSEGV || signum == SIGBUS) && common_flags()->handle_segv; } diff --git a/test/sanitizer_common/TestCases/Linux/fpe.cc b/test/sanitizer_common/TestCases/Posix/fpe.cc index 9a6f808a5..9a6f808a5 100644 --- a/test/sanitizer_common/TestCases/Linux/fpe.cc +++ b/test/sanitizer_common/TestCases/Posix/fpe.cc |