]> 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:35 +0000 (13:04 +0000)
commit310c8a7c68cbbe0e16165116ebe55ea82db2675b
tree4dca9ae0f33d98e32af3b9ca49bf5a5101f9c714
parentd45c8e165f94ccc7e0bc5ae2e1050653c8627c5a
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