[asterisk-bugs] [Asterisk 0011052]: Passing a NULL value back from IF() to Set() on 64-bit crashes Asterisk

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Oct 22 12:49:08 CDT 2007


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=11052 
====================================================================== 
Reported By:                blitzrage
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   11052
Category:                   Functions/func_logic
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.4.13  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             10-22-2007 12:43 CDT
Last Modified:              10-22-2007 12:49 CDT
====================================================================== 
Summary:                    Passing a NULL value back from IF() to Set() on
64-bit crashes Asterisk
Description: 
Here is the offending dialplan line:

exten => _X.,n,Set(RING_CYCLE=${IF($[${ISNULL(${ARG3})} &
${EXISTS(${RING_CYCLE})}]?${RING_CYCLE})})

If the IF() function returns NULL (false branch), then Asterisk will
crash. Doing:

Set(RING_CYCLE=)

Does not crash Asterisk, so it seems to be something that the IF() is
passing back. This works fine on a 32-bit OS.
====================================================================== 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
10-22-07 12:49  file           Status                   new => assigned     
10-22-07 12:49  file           Assigned To               => Corydon76       
======================================================================




More information about the asterisk-bugs mailing list