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

Nathan Bruning (JIRA) noreply at issues.asterisk.org
Thu Dec 10 17:07:16 CST 2020


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

Nathan Bruning updated ASTERISK-29211:
--------------------------------------

    Description: 
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...

  was:
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...


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