[asterisk-bugs] [JIRA] (ASTERISK-27792) res_pjsip: Segfault when calling pjsip_hdr_print_on in sip_msg.c:581

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Apr 6 04:24:50 CDT 2018


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=242949#comment-242949 ] 

Asterisk Team commented on ASTERISK-27792:
------------------------------------------

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

> res_pjsip: Segfault when calling pjsip_hdr_print_on in sip_msg.c:581
> --------------------------------------------------------------------
>
>                 Key: ASTERISK-27792
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27792
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_pjsip
>    Affects Versions: 13.20.0
>         Environment: CentOS
>            Reporter: Ross Beer
>              Labels: pjsip
>
> Since upgrading to pjproject 2.7.2 the patch that fixed issue ASTERISK-26832 was removed and the actual fix is not present in release 2.7.2
> Fixed Code:
> {noformat}
> PJ_DEF(int) pjsip_hdr_print_on( void *hdr_ptr, char *buf, pj_size_t len)
> {
>     pjsip_hdr *hdr = (pjsip_hdr*) hdr_ptr;
>     if (!hdr->vptr) {
>         return 0;
>     }
>     return (*hdr->vptr->print_on)(hdr_ptr, buf, len);
> }
> {noformat}
> 2.7.2 Code:
> {noformat}
> PJ_DEF(int) pjsip_hdr_print_on( void *hdr_ptr, char *buf, pj_size_t len)
> {
>     pjsip_hdr *hdr = (pjsip_hdr*) hdr_ptr;
>     return (*hdr->vptr->print_on)(hdr_ptr, buf, len);
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list