[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


Nathan Bruning created ASTERISK-29211:
-----------------------------------------

             Summary: 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: 18.1.0, 17.9.0, 16.15.0, 13.38.0, 15.7.4, 14.7.8
            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