[compiler-rt] [compiler-rt] fix/check __sanitizer_siginfo type on apple. (PR #77464)
David CARLIER via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 9 05:07:13 PST 2024
https://github.com/devnexen created https://github.com/llvm/llvm-project/pull/77464
None
>From 134b2cd5a302666f8ce5bae80ccc29a7346106cb Mon Sep 17 00:00:00 2001
From: David Carlier <devnexen at gmail.com>
Date: Tue, 9 Jan 2024 13:06:20 +0000
Subject: [PATCH] [compiler-rt] fix/check __sanitizer_siginfo type on apple.
---
.../sanitizer_platform_limits_posix.h | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
index 34bfef1f7ef456..207a1e43c64c8a 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
@@ -602,6 +602,18 @@ union __sanitizer_siginfo {
};
__sanitizer_siginfo_pad pad;
};
+#elif SANITIZER_APPLE
+# define SANITIZER_HAS_SIGINFO 1
+struct __sanitizer_siginfo {
+ int si_signo;
+ int si_errno;
+ int si_code;
+ pid_t si_pid;
+ u32 si_uid;
+ int si_status;
+ void *si_addr;
+ unsigned long opaque[9];
+};
#else
# define SANITIZER_HAS_SIGINFO 0
typedef __sanitizer_siginfo_pad __sanitizer_siginfo;
More information about the llvm-commits
mailing list