]> 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)
committerGeorge Joseph <gjoseph@sangoma.com>
Tue, 14 May 2024 14:01:52 +0000 (08:01 -0600)
commitf9f36ca702ca812e142419df9ebca0d0a9b9fd1c
tree2807e897aec3b273e24e1a9e463364a1ba23dfaa
parente1f7778b4cbf6fecb1e09960d6f4af6173c36386
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