[asterisk-bugs] [JIRA] (ASTERISK-25609) Asterisk may crash when calling ast_channel_get_t38_state(c)

Asterisk Team (JIRA) noreply at issues.asterisk.org
Fri Dec 4 07:48:33 CST 2015


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

Asterisk Team commented on ASTERISK-25609:
------------------------------------------

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].

> Asterisk may crash when calling ast_channel_get_t38_state(c)
> ------------------------------------------------------------
>
>                 Key: ASTERISK-25609
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-25609
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/T.38
>    Affects Versions: 13.6.0
>         Environment: Asterisk 13.6.0, debian jessie 32-bit
>            Reporter: Filip Jenicek
>            Severity: Minor
>
> Asterisk may crash when calling ast_channel_get_t38_state(c) on a locked channel which is being hung up. 
> We call the ast_channel_get_t38_state(c) function from a custom asterisk module, so I can't say whether that the issue can happen with the unmodified asterisk code. 
> However, I believe there can be a channel with tech = sip_tech and tech_pvt* = NULL, probably when a call is being hung up. If the function ast_channel_get_t38_state(c) is called on a such channel, function sip_queryoption crashes while trying to dereference a pointer to tech_pvt.
> I suggest adding a simple check of the tech_pvt pointer just as it is in other similar methods.
> {code}
> 	if (!p) {
> 		return -1;
> 	}
> {code}



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



More information about the asterisk-bugs mailing list