[asterisk-bugs] [JIRA] (ASTERISK-23412) Theoretical ref-leak in chan_sip autokill

Rusty Newton (JIRA) noreply at issues.asterisk.org
Tue Mar 4 09:40:48 CST 2014


     [ https://issues.asterisk.org/jira/browse/ASTERISK-23412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rusty Newton updated ASTERISK-23412:
------------------------------------

    Status: Open  (was: Triage)

> Theoretical ref-leak in chan_sip autokill
> -----------------------------------------
>
>                 Key: ASTERISK-23412
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-23412
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Channels/chan_sip/General
>    Affects Versions: 1.8.27.0, 11.8.0
>         Environment: Theoretical / Code review
>            Reporter: Steve Davies
>            Severity: Minor
>         Attachments: theoretical_sip_autokill_fix.diff
>
>
> While investigating a different ref-count issue, I observed that {code}pvt->autokillid{code} can be prematurely reset to -1 in __sip_autodestruct(), causing a potential ref-leak issue.
> IMHO It should only be reset if the call is not going to be rescheduled, and after the lock has been obtained.
> I have not seen this cause an issue in the wild.



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



More information about the asterisk-bugs mailing list