[llvm-branch-commits] [compiler-rt] [SafeStack] Intercept signal handlers (PR #196970)

Jakob Koschel via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Jun 12 02:33:20 PDT 2026


https://github.com/jakos-sec updated https://github.com/llvm/llvm-project/pull/196970

>From 31198321d579b85fa5677ba742a4a9fd9e61d455 Mon Sep 17 00:00:00 2001
From: Jakob Koschel <jakobkoschel at google.com>
Date: Mon, 11 May 2026 15:29:49 +0000
Subject: [PATCH] fix clang-format

Created using spr 1.3.7
---
 compiler-rt/lib/safestack/safestack.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/compiler-rt/lib/safestack/safestack.cpp b/compiler-rt/lib/safestack/safestack.cpp
index 06c2ac44cff67..13063a2511d23 100644
--- a/compiler-rt/lib/safestack/safestack.cpp
+++ b/compiler-rt/lib/safestack/safestack.cpp
@@ -16,8 +16,8 @@
 #define SANITIZER_COMMON_NO_REDEFINE_BUILTINS
 
 #include <errno.h>
-#include <string.h>
 #include <signal.h>
+#include <string.h>
 #include <sys/resource.h>
 
 #include "interception/interception.h"
@@ -477,9 +477,9 @@ void EnsureInterceptorsInitialized() {
   if (interceptors_inited)
     return;
 
-  sigactions = (atomic_uintptr_t*)Mmap(
-      nullptr, kMaxSignals * sizeof(atomic_uintptr_t), PROT_READ,
-      MAP_PRIVATE | MAP_ANON, -1, 0);
+  sigactions =
+      (atomic_uintptr_t*)Mmap(nullptr, kMaxSignals * sizeof(atomic_uintptr_t),
+                              PROT_READ, MAP_PRIVATE | MAP_ANON, -1, 0);
   SFS_CHECK(sigactions != MAP_FAILED);
 
   // Initialize pthread interceptors for thread allocation



More information about the llvm-branch-commits mailing list