]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix handling of "From" headers longer than 256 characters
authorCorey Farrell <git@cfware.com>
Thu, 26 Jun 2014 10:05:20 +0000 (10:05 +0000)
committerCorey Farrell <git@cfware.com>
Thu, 26 Jun 2014 10:05:20 +0000 (10:05 +0000)
commit0bd6be3ca4a4e6e848c7b0000672beff18204341
treec024e711c4b719ff75684be5ae120ff5d900ba91
parent5d68914fa51b29f6205fce30798d4d21130b526c
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

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