diff options
author | Sergio Medina Toledo <lumasepa@gmail.com> | 2016-03-03 10:43:59 +0000 |
---|---|---|
committer | Joshua Colp <jcolp@digium.com> | 2016-03-17 15:11:39 -0300 |
commit | bdccb81157e5a0a59d7233c051da100f2aa830b4 (patch) | |
tree | f8bc9eab53df6b3f05de1ddafeac77e827e6ccec /channels | |
parent | f557843323c45bd2e99520c274f38e6598b2bf90 (diff) |
res_pjsip_refer.c: Fix seg fault in process of Refer-to header.
The "Refer-to" header of an incoming REFER request is parsed by
pjsip_parse_uri(). That function requires the URI parameter to be NULL
terminated. Unfortunately, the previous code added the NULL terminator by
overwriting memory that may not be safe. The overwritten memory results
could be benign, memory corruption, or a segmentation fault. Now the URI
is NULL terminated safely by copying the URI to a new chunk of memory with
the correct size to be NULL terminated.
ASTERISK-25814 #close
Change-Id: I32565496684a5a49c3278fce06474b8c94b37342
Diffstat (limited to 'channels')
0 files changed, 0 insertions, 0 deletions