Submitted by: Matthias Wolf via GitHub MFH: 2020Q3 Security: http://vuxml.freebsd.org/freebsd/9a447f78-d0f8-11ea-9837-e09467587c17.html Security: http://vuxml.freebsd.org/freebsd/870d59b0-c6c4-11ea-8015-e09467587c17.html
11 lines
581 B
C++
11 lines
581 B
C++
--- base/logging_unittest.cc.orig 2020-07-07 21:58:11 UTC
|
|
+++ base/logging_unittest.cc
|
|
@@ -552,7 +552,7 @@ void CheckCrashTestSighandler(int, siginfo_t* info, vo
|
|
// need the arch-specific boilerplate below, which is inspired by breakpad.
|
|
// At the same time, on OSX, ucontext.h is deprecated but si_addr works fine.
|
|
uintptr_t crash_addr = 0;
|
|
-#if defined(OS_MACOSX)
|
|
+#if defined(OS_MACOSX) || defined(OS_BSD)
|
|
crash_addr = reinterpret_cast<uintptr_t>(info->si_addr);
|
|
#else // OS_POSIX && !OS_MACOSX
|
|
ucontext_t* context = reinterpret_cast<ucontext_t*>(context_ptr);
|