[Asterisk-code-review] res pjsip refer.c: Fix seg fault in process of Refer-to header. (asterisk[13])

Joshua Colp asteriskteam at digium.com
Thu Mar 17 13:10:28 CDT 2016


Joshua Colp has posted comments on this change.

Change subject: res_pjsip_refer.c: Fix seg fault in process of Refer-to header.
......................................................................


Patch Set 2:

(1 comment)

https://gerrit.asterisk.org/#/c/2360/2/res/res_pjsip_refer.c
File res/res_pjsip_refer.c:

Line 1023: 	target = pjsip_parse_uri(rdata->tp_info.pool, uri, uri_size, 0);
The problem is right here. pjsip_parse_uri wants the size not counting NULL terminator, so this needs to be uri_size - 1


-- 
To view, visit https://gerrit.asterisk.org/2360
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I32565496684a5a49c3278fce06474b8c94b37342
Gerrit-PatchSet: 2
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Sergio Medina Toledo <lumasepa at gmail.com>
Gerrit-Reviewer: Anonymous Coward #1000019
Gerrit-Reviewer: Joshua Colp <jcolp at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Richard Mudgett <rmudgett at digium.com>
Gerrit-HasComments: Yes



More information about the asterisk-code-review mailing list