]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix buffer overrun in sip_sipredirect. 80/2080/1
authorCorey Farrell <git@cfware.com>
Mon, 25 Jan 2016 17:03:21 +0000 (12:03 -0500)
committerCorey Farrell <git@cfware.com>
Mon, 25 Jan 2016 17:12:46 +0000 (11:12 -0600)
commit36aa50aded58f0a729ba208bc5c5db859eb46787
treeb81a0a5f6e41c0bee048f17be0510b75a6fe0a1f
parentf656c1e62a2a8139ebf64705a8f0e63e6a563fcf
chan_sip: Fix buffer overrun in sip_sipredirect.

sip_sipredirect uses sscanf to copy up to 256 characters to a stacked buffer
of 256 characters.  This patch reduces the copy to 255 characters to leave
room for the string null terminator.

ASTERISK-25722 #close

Change-Id: Id6c3a629a609e94153287512c59aa1923e8a03ab
channels/chan_sip.c