signal: fix invalid pointer access (#4207)

This commit is contained in:
Ahmed Yasser
2023-12-21 00:54:52 +02:00
committed by GitHub
parent 4eb42fab7b
commit 79f3888b4b

View File

@@ -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;
}