FS-10867: [freeswitch-core] Prevent stack smash when queing multiple sound files without event-lock #resolve

This commit is contained in:
Brian West authored and Muteesa Fred committed 2018-07-24 07:21:38 +00:00
1 parent 1a2d406e86
commit 291da11322
3 files changed
+20

No files matched your search

+8
View File
@@ -2895,6 +2895,14 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
return SWITCH_STATUS_SUCCESS;
}
SWITCH_DECLARE(uint32_t) switch_core_session_stack_count(switch_core_session_t *session, int x)
{
if (x > 0) session->stack_count++;
else if (x < 0) session->stack_count--;
return session->stack_count;
}
SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_session_t *session, const char *exten, const char *dialplan,
const char *context)
{