[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 14:34:10 CDT 2007
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=11052
======================================================================
Reported By: blitzrage
Assigned To: murf
======================================================================
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 14:34 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.
======================================================================
----------------------------------------------------------------------
Corydon76 - 10-22-07 14:34
----------------------------------------------------------------------
Additional debugging solicited via IRC indicated a memory allocation
problem in ast_expr2f.c
Issue History
Date Modified Username Field Change
======================================================================
10-22-07 14:34 Corydon76 Note Added: 0072383
10-22-07 14:34 Corydon76 Assigned To Corydon76 => murf
======================================================================
More information about the asterisk-bugs
mailing list