[asterisk-bugs] [Asterisk 0013804]: app_directory crashses Asterisk when voicemail entry doesn't have a name

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 29 15:40:39 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13804 
====================================================================== 
Reported By:                bluecrow76
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13804
Category:                   Applications/app_directory
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.0.1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-10-29 15:11 CDT
Last Modified:              2008-10-29 15:40 CDT
====================================================================== 
Summary:                    app_directory crashses Asterisk when voicemail entry
doesn't have a name
Description: 
example voicemail.conf:
[voicemail-context]
101 => 101
102 => 102,Extension 102

After the Directory application requests the first three letters for the
search, when it performs the search, it will crash asterisk when it tries
to parse the line with no name.

My fix was to change the offending lines to something like the following,
but it appears a check needs to be added.
101 => 101,101
====================================================================== 

---------------------------------------------------------------------- 
 (0094376) putnopvut (administrator) - 2008-10-29 15:40
 http://bugs.digium.com/view.php?id=13804#c94376 
---------------------------------------------------------------------- 
Yeah, this is a simple case where the idea of a NULL pointer was not
considered in the design and needs to be checked for. This will be a really
easy fix and I'll have it committed soon. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-29 15:40 putnopvut      Note Added: 0094376                          
======================================================================




More information about the asterisk-bugs mailing list