[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:42:52 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:42 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
====================================================================== 

---------------------------------------------------------------------- 
 (0094377) svnbot (reporter) - 2008-10-29 15:42
 http://bugs.digium.com/view.php?id=13804#c94377 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 152646

U   trunk/apps/app_directory.c

------------------------------------------------------------------------
r152646 | mmichelson | 2008-10-29 15:42:51 -0500 (Wed, 29 Oct 2008) | 9
lines

If there was no named defined in a voicemail.conf mailbox
entry, then app_directory would crash when attempting to
read that entry from the file. We now check for the NULL
or empty string properly so that there will be no crash.

(closes issue http://bugs.digium.com/view.php?id=13804)
Reported by: bluecrow76


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=152646 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-29 15:42 svnbot         Checkin                                      
2008-10-29 15:42 svnbot         Note Added: 0094377                          
======================================================================




More information about the asterisk-bugs mailing list