[compiler-rt] [compiler-rt] Hardened altsigstack unmap fix from PR #179000 (PR #196460)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 19:21:50 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- compiler-rt/test/asan/TestCases/Posix/multiple_sigaltstack.cpp compiler-rt/test/asan/TestCases/Posix/sigaltstack-replaced-by-app.cpp compiler-rt/lib/asan/asan_thread.cpp compiler-rt/lib/asan/asan_thread.h compiler-rt/lib/sanitizer_common/sanitizer_common.h compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp compiler-rt/lib/sanitizer_common/sanitizer_posix_libcdep.cpp compiler-rt/lib/sanitizer_common/sanitizer_win.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
index 996d34ff5..1f09c50e9 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h
@@ -388,7 +388,7 @@ void ReportDeadlySignal(const SignalContext &sig, u32 tid,
 
 // Alternative signal stack (POSIX-only).
 struct AlternateSignalStack {
-  void *sp;
+  void* sp;
   uptr size;
 };
 AlternateSignalStack SetAlternateSignalStack();

``````````

</details>


https://github.com/llvm/llvm-project/pull/196460


More information about the llvm-commits mailing list