This time the fix is proper for issue 12284. I have tested it thoroughly and found
authorMark Michelson <mmichelson@digium.com>
Fri, 28 Mar 2008 20:03:16 +0000 (20:03 +0000)
committerMark Michelson <mmichelson@digium.com>
Fri, 28 Mar 2008 20:03:16 +0000 (20:03 +0000)
commitbf4893fdce00ef1223f9ea2adf9fec5dcfcc82ac
tree93e0ed44c826ef65f347d6920a0dc8ff2fba3b6c
parent3a0f4cc933283293a5b19eb11730eb3328f81052
This time the fix is proper for issue 12284. I have tested it thoroughly and found
that valgrind no longer complains and that calls do complete correctly.

The fix is along the same lines as before: Make sure the final null terminator gets copied
into the new sip_request's data pointer. Without it, parse_request will read and potentially
write past the end of the string, causing potential crashes.

(closes issue #12284...for real this time!)
reported by falves11

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