]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pbx_variables.c: Prevent SEGV due to stack overflow.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 4 Dec 2023 17:58:17 +0000 (12:58 -0500)
committerasterisk-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Fri, 22 Mar 2024 13:04:37 +0000 (13:04 +0000)
commitfc80bed5a799a32d96a9b4a68bf20a52883570d4
treebe4b05056ed226c397db7936ad60eb21c178f819
parent688095c6cb7139b71bd82dc6dbf3cdf8e934ddbd
pbx_variables.c: Prevent SEGV due to stack overflow.

It is possible for dialplan to result in an infinite
recursion of variable substitution, which eventually
leads to stack overflow. If we detect this, abort
substitution and log an error for the user to fix
the broken dialplan.

Resolves: #480

UpgradeNote: The maximum amount of dialplan recursion
using variable substitution (such as by using EVAL_EXTEN)
is capped at 15.
main/pbx_variables.c