chan_sip: Fix handling of "From" headers longer than 256 characters
authorCorey Farrell <git@cfware.com>
Thu, 26 Jun 2014 10:06:13 +0000 (10:06 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 26 Jun 2014 10:06:13 +0000 (10:06 +0000)
commitd171e0b2e96ca1cc2cf6c53cdd9d5a3c876be91b
tree1bef9f48a20933ad0663938841ee8554c86326af
parentbc8c08c6090da176afd48712477f4d66fc71ab2b
chan_sip: Fix handling of "From" headers longer than 256 characters

From headers were processed using a 256 character buffer on the stack.
This change replaces that with a heap allocation by ast_strdup.

ASTERISK-23790 #close
Reported by: uniken1
Tested by: uniken1
Review: https://reviewboard.asterisk.org/r/3669/
Patches:
    chan_sip-large-from-header-1.8-r3.patch uploaded by wdoekes (license 5674)
........

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

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

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

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@417251 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_sip.c