}
#endif
-void
+RSPAMD_NO_SANITIZE void
rspamd_set_crash_handler (struct rspamd_main *rspamd_main)
{
#ifdef HAVE_SA_SIGINFO
struct sigaction sa;
#ifdef HAVE_SIGALTSTACK
+ void *stack_mem;
stack_t ss;
memset (&ss, 0, sizeof ss);
* I don't know any good ways to stop this behaviour.
*/
ss.ss_size = MAX (SIGSTKSZ, 8192 * 4);
- ss.ss_sp = g_malloc0 (ss.ss_size);
+ stack_mem = g_malloc0 (ss.ss_size);
+ ss.ss_sp = stack_mem;
sigaltstack (&ss, NULL);
#endif
saved_main = rspamd_main;
/**
* Sets crash signals handlers if compiled with libunwind
*/
-void rspamd_set_crash_handler (struct rspamd_main *);
+RSPAMD_NO_SANITIZE void rspamd_set_crash_handler (struct rspamd_main *);
/**
* Initialise the main monitoring worker