mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-17 23:08:35 +00:00
FS-10867: [freeswitch-core] Prevent stack smash when queing multiple sound files without event-lock #resolve
This commit is contained in:
1 parent
1a2d406e86
commit
291da11322
3 files changed
+20
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user