]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Fix crash when parsing some heavily nested statements in AEL on reload.
authorJeff Peeler <jpeeler@digium.com>
Fri, 18 Jun 2010 19:28:24 +0000 (19:28 +0000)
committerJeff Peeler <jpeeler@digium.com>
Fri, 18 Jun 2010 19:28:24 +0000 (19:28 +0000)
commit11816dd222e7afa679526dbe4dcd54db7eba2b93
tree92b8e2226514bc17cc2f469d50fdd0bdf41c3c07
parentaafa3c7464ae4d2404f93bb1af946c982b3e5801
Fix crash when parsing some heavily nested statements in AEL on reload.

Due to the recursion used when compiling AEL in gen_prios, all the stack space
was being consumed when parsing some AEL that contained nesting 13 levels deep.
Changing a few large buffers to be heap allocated fixed the crash, although I
did not test how many more levels can now be safely used.

(closes issue #16053)
Reported by: diLLec
Tested by: jpeeler

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@271399 65c4cc65-6c06-0410-ace0-fbb531ad65f3
pbx/pbx_ael.c