pbx.c: prevent potential crash from recursive replace()
authorScott Griepentrog <sgriepentrog@digium.com>
Wed, 21 May 2014 19:08:39 +0000 (19:08 +0000)
committerScott Griepentrog <sgriepentrog@digium.com>
Wed, 21 May 2014 19:08:39 +0000 (19:08 +0000)
commit43bd3580e213554ef16ae89cbb91fc749a66db60
tree44821679417c433dbc5bc36e938189e7ca9e0bac
parent4988d4932bf5659efc74633fb155cdfd5e052e47
pbx.c: prevent potential crash from recursive replace()

Recurisve usage of replace() resulted in corruption of the
temporary string storage and potential crash.  By changing
the string to be allocated separtely per instance, this is
eliminated.

ASTERISK-23650 #comment Reported by: Roel van Meer
ASTERISK-23650 #close

Review: https://reviewboard.asterisk.org/r/3539/
........

Merged revisions 414214 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 414215 from http://svn.asterisk.org/svn/asterisk/branches/11
........

Merged revisions 414216 from http://svn.asterisk.org/svn/asterisk/branches/12

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414217 65c4cc65-6c06-0410-ace0-fbb531ad65f3
funcs/func_strings.c