The copy_request function did not take into account the necessary null terminator
authorMark Michelson <mmichelson@digium.com>
Fri, 28 Mar 2008 16:36:59 +0000 (16:36 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 28 Mar 2008 16:36:59 +0000 (16:36 +0000)
commitca8e44c051cba9dd3d973fd37b16ee76e2fa59cb
treefc8e0f26a840d8ca90e1d0e068d2fb9744c4eff9
parent8b31f34e7844c35bc508c9bf31c404de485249a4
The copy_request function did not take into account the necessary null terminator
for the string to be copied into. This resulted in parse_request reading invalid
memory beyond the end of the string, and in some cases led to crashes. Thanks
to falves11 for providing the valgrind output which led to the closure of this issue.

(closes issue #12284)
Reported by: falves11

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