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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,7 +24,7 @@ void handleUnrecoverableSignal(int sig) {
signal(SIGABRT, SIG_DFL); signal(SIGABRT, SIG_DFL);
signal(SIGSEGV, SIG_DFL); signal(SIGSEGV, SIG_DFL);
if (g_pHookSystem->m_bCurrentEventPlugin) { if (g_pHookSystem && g_pHookSystem->m_bCurrentEventPlugin) {
longjmp(g_pHookSystem->m_jbHookFaultJumpBuf, 1); longjmp(g_pHookSystem->m_jbHookFaultJumpBuf, 1);
return; return;
} }