]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_sip: Fix buffer overrun in sip_sipredirect. 79/2079/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:06:28 +0000 (12:06 -0500)
commita6823bb0c4f33dd19c11cd30f23650a194c2dbb7
treeadf01347efab8aef87da2499ed55106954ea8ed8
parentfcb6c1737d586d5e574d3c2f865157a9632979a7
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