[asterisk-bugs] [JIRA] (ASTERISK-29211) res_musiconhold: Segfault on realtime music on hold without entries

Joshua C. Colp (JIRA) noreply at issues.asterisk.org
Thu Dec 10 17:44:17 CST 2020


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

Work on ASTERISK-29211 started by Nathan Bruning.

> res_musiconhold: Segfault on realtime music on hold without entries
> -------------------------------------------------------------------
>
>                 Key: ASTERISK-29211
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-29211
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_musiconhold
>    Affects Versions: 14.7.8, 15.7.4, 13.38.0, 16.15.0, 17.9.0, 18.1.0
>            Reporter: Nathan Bruning
>            Assignee: Nathan Bruning
>            Severity: Minor
>
> When configuring asterisk to use real-time music on hold, it will segfault if there are no entries in the DB.
> This is easy to spot in the sources: {{load_realtime_musiconhold}} doesn't check whether {{ast_load_realtime_multientry}} returns NULL.
> Simple fix would be to add a null check around the following code...



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



More information about the asterisk-bugs mailing list