[asterisk-bugs] [Asterisk 0017215]: Segfault on ael parsing

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Apr 20 17:05:34 CDT 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17215 
====================================================================== 
Reported By:                vazir
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17215
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.6.1.18 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-04-20 17:01 CDT
Last Modified:              2010-04-20 17:05 CDT
====================================================================== 
Summary:                    Segfault on ael parsing
Description: 
The following construction causes AEL to crash

aelparse crasheas as well as asterisk process on extesions.ael reload

Set(PBOOK=${ODBC_GET_PHONEBOOK(${shortno},${source});

please note unfinished variable end absence of the ')'
====================================================================== 

---------------------------------------------------------------------- 
 (0120666) vazir (reporter) - 2010-04-20 17:05
 https://issues.asterisk.org/view.php?id=17215#c120666 
---------------------------------------------------------------------- 
Just for note: the full crashing macro:

--

macro get_phonebook (shortno) {
// - The given construction CAUSES A CRASH! Keep for bugs. :  
Set(PBOOK=${ODBC_GET_PHONEBOOK(${shortno},${source});
    Set(PBOOK=${ODBC_GET_PHONEBOOK(${shortno},${source})});
    if ( ${ODBCROWS} > 0 ) {
        Set(ARRAY(dest,dest_type)=${ODBC_FETCH(${PBOOK})});
        Set(pb_state=0);
        return;
    } else {
        Set(pb_state=100);
        return;
    };
    return;
}; 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-20 17:05 vazir          Note Added: 0120666                          
======================================================================




More information about the asterisk-bugs mailing list