Prevent crashes in res_xmpp when receiving large messages
authorMatthew Jordan <mjordan@digium.com>
Thu, 3 Jan 2013 15:37:31 +0000 (15:37 +0000)
committerMatthew Jordan <mjordan@digium.com>
Thu, 3 Jan 2013 15:37:31 +0000 (15:37 +0000)
commit8bf1f1745ba5681b6457010c0c56218e3db6e803
treeb5e2d58f182ff2f7bfd2c5770f636b46d99b1ed3
parent473ec0b1c3d05596c8b00d39aa00e4dfafe7d387
Prevent crashes in res_xmpp when receiving large messages

Similar to r378287, res_xmpp was marshaling data read from an external source
onto the stack. For a sufficiently large message, this could cause a stack
overflow. This patch modifies res_xmpp in a similar fashion to res_jabber by
removing the stack allocation, as it was unnecessary.

(issue ASTERISK-20658)
Reported by: wdoekes
........

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@378410 65c4cc65-6c06-0410-ace0-fbb531ad65f3
res/res_xmpp.c