]> 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)
committerNaveen Albert <asterisk@phreaknet.org>
Fri, 22 Mar 2024 13:04:32 +0000 (13:04 +0000)
commit6991d36332956b9c52f6068539c6c8a727e889b2
treeb91ba1ae8d4d8c5d586956aab44cbdc72cf8c0c9
parentd11eba69a6101f8f4f40093206bc919afdf58152
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