From 79f3888b4bd9796850189ed3e151a6c831e6faae Mon Sep 17 00:00:00 2001 From: Ahmed Yasser Date: Thu, 21 Dec 2023 00:54:52 +0200 Subject: [PATCH] signal: fix invalid pointer access (#4207) --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 5241fde8..c7be0662 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -24,7 +24,7 @@ void handleUnrecoverableSignal(int sig) { signal(SIGABRT, SIG_DFL); signal(SIGSEGV, SIG_DFL); - if (g_pHookSystem->m_bCurrentEventPlugin) { + if (g_pHookSystem && g_pHookSystem->m_bCurrentEventPlugin) { longjmp(g_pHookSystem->m_jbHookFaultJumpBuf, 1); return; }