[compiler-rt] [sanitizer] Add cloak_sanitizer_signal_handlers runtime option (PR #162746)
Thurston Dang via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 13:39:47 PDT 2025
================
@@ -111,6 +114,18 @@ const char *StripModuleName(const char *module) {
return module;
}
+void SetSignalHandlerFromSanitizer(int signum, bool new_state) {
+ if (signum >= 0 && signum < MaxSignals)
+ signal_handler_is_from_sanitizer[signum] = new_state;
----------------
thurstond wrote:
This function is used in the interceptors, which are cross-platform. If I moved SetSignalHandlerFromSanitizer into sanitizer_posix_libcdep.cpp (the same file as MaybeInstallSigaction), I would need to add a lot of `#if SANITIZER_POSIX` into the interceptors.
https://github.com/llvm/llvm-project/pull/162746
More information about the llvm-commits
mailing list