[Asterisk-code-review] app macro: Prevent infinite loop in find matching priority. (asterisk[master])

Corey Farrell asteriskteam at digium.com
Fri May 4 14:17:58 CDT 2018


Corey Farrell has uploaded a new patch set (#2). ( https://gerrit.asterisk.org/8929 )

Change subject: app_macro: Prevent infinite loop in find_matching_priority.
......................................................................

app_macro: Prevent infinite loop in find_matching_priority.

Use AST_PBX_MAX_STACK to escape if we recurse 128 times.  This will
prevent crash if dialplan contains an include loop.  Log an error when
this occurs, at most one message per call to Macro() so we avoid logger
spam.

ASTERISK-26570 #close

Change-Id: I6c71b76998c31434391b150de055ae9a531e31da
---
M apps/app_macro.c
1 file changed, 16 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/29/8929/2
-- 
To view, visit https://gerrit.asterisk.org/8929
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6c71b76998c31434391b150de055ae9a531e31da
Gerrit-Change-Number: 8929
Gerrit-PatchSet: 2
Gerrit-Owner: Corey Farrell <git at cfware.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180504/c6df4e1b/attachment.html>


More information about the asterisk-code-review mailing list