[Home]

Summary:ASTERISK-12027: [patch] String comparison of NULL Urgent flag value crashes Asterisk.
Reporter:James Rothenberger (jaroth)Labels:
Date Opened:2008-05-15 09:37:36Date Closed:2008-05-15 10:07:30
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) urgentcompare.patch
Description:If the Urgent flag is NULL (in some cases), strcmp() will crash Asterisk.   This patch adds an ast_strlen_zero() check before the strcmp() of the Urgent flag in all cases.
Comments:By: Mark Michelson (mmichelson) 2008-05-15 10:05:53

Cool, I'll get this in right away.

By: Digium Subversion (svnbot) 2008-05-15 10:07:08

Repository: asterisk
Revision: 116590

U   trunk/apps/app_voicemail.c

------------------------------------------------------------------------
r116590 | mmichelson | 2008-05-15 10:07:07 -0500 (Thu, 15 May 2008) | 8 lines

Prevent crashes from occurring due to a strcmp of a NULL pointer.

(closes issue ASTERISK-12027)
Reported by: jaroth
Patches:
     urgentcompare.patch uploaded by jaroth (license 50)


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

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

By: Digium Subversion (svnbot) 2008-05-15 10:07:30

Repository: asterisk
Revision: 116591

_U  branches/1.6.0/

------------------------------------------------------------------------
r116591 | mmichelson | 2008-05-15 10:07:30 -0500 (Thu, 15 May 2008) | 15 lines

Blocked revisions 116590 via svnmerge

........
r116590 | mmichelson | 2008-05-15 10:13:11 -0500 (Thu, 15 May 2008) | 8 lines

Prevent crashes from occurring due to a strcmp of a NULL pointer.

(closes issue ASTERISK-12027)
Reported by: jaroth
Patches:
     urgentcompare.patch uploaded by jaroth (license 50)


........

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

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