]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Using the GetVar handler in AMI is potentially dangerous (insta-crash [tm]) when...
authorBJ Weschke <bweschke@btwtech.com>
Sat, 18 Oct 2008 01:42:23 +0000 (01:42 +0000)
committerBJ Weschke <bweschke@btwtech.com>
Sat, 18 Oct 2008 01:42:23 +0000 (01:42 +0000)
commit4ac62c324bfb86dae68c62e2d9aa2b0bbca8a83f
treec530fec1363cd44e8cb7892e5180da5469f91a3e
parent8f30902385c801deaa013fddd8090c89ac27339b
 Using the GetVar handler in AMI is potentially dangerous (insta-crash [tm]) when you use a dialplan function that requires a channel and then you don't provide one or provide an invalid one in the Channel: parameter. We'll handle this situation exactly the same way it was handled in pbx.c back on r61766.
 We'll create a bogus channel for the function call and destroy it when we're done. If we have trouble allocating the bogus channel then we're not going to try executing the function call at all and run the risk of crashing.
 (closes issue #13715)
 reported by: makoto
 patch by: bweschke

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@150816 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/manager.c