[asterisk-bugs] [Asterisk 0014473]: [patch] Crash in VoiceMailMain if hangup occurs before a valid mailbox number is entered (IMAP only)

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Feb 13 13:47:50 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14473 
====================================================================== 
Reported By:                dwpaul
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   14473
Category:                   Applications/app_voicemail/IMAP
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     confirmed
Asterisk Version:           1.4.23 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 173696 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-12 19:24 CST
Last Modified:              2009-02-13 13:47 CST
====================================================================== 
Summary:                    [patch] Crash in VoiceMailMain if hangup occurs
before a valid mailbox number is entered (IMAP only)
Description: 
(this actually is for version 1.4.23.1)

If VoiceMailMain() is called from a dialplan without a valid mailbox
number or with no mailbox number, the user is prompted for a mailbox
number. If they then hangup before entering a number, Asterisk will crash.
This only occurs with the IMAP store.

====================================================================== 

---------------------------------------------------------------------- 
 (0100129) svnbot (reporter) - 2009-02-13 13:47
 http://bugs.digium.com/view.php?id=14473#c100129 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 175590

U   branches/1.4/apps/app_voicemail.c

------------------------------------------------------------------------
r175590 | mmichelson | 2009-02-13 13:47:49 -0600 (Fri, 13 Feb 2009) | 16
lines

Fix a potential crash situation when using IMAP voicemail

If calling into VoiceMailMain when using IMAP storage, it was
possible to crash Asterisk by hanging up the phone when prompted
for a voicemail mailbox. This patch fixes the issue.

While it may appear that this patch is superficial, it allows code
execution to continue to the failure case just below the IMAP_STORAGE
code block where this patch has been applied

(closes issue http://bugs.digium.com/view.php?id=14473)
Reported by: dwpaul
Patches:
      voicemail_imap_crash_no_mailbox.patch uploaded by dwpaul (license
689)


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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-13 13:47 svnbot         Checkin                                      
2009-02-13 13:47 svnbot         Note Added: 0100129                          
======================================================================




More information about the asterisk-bugs mailing list