[asterisk-bugs] [Asterisk 0017001]: sqlite module does bad parsing of values in config file

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Mar 10 10:09:58 CST 2010


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17001 
====================================================================== 
Reported By:                snuffy
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17001
Category:                   CDR/cdr_sqlite3_custom
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 250781 
Request Review:              
====================================================================== 
Date Submitted:             2010-03-09 16:48 CST
Last Modified:              2010-03-10 10:09 CST
====================================================================== 
Summary:                    sqlite module does bad parsing of values in config
file
Description: 
If you try to use an option to a CDR() function  or any function it will
fail to input records, because it separates on the ',' which can be
mid-string like CDR(blah,f) would become 'CDR(blah' and 'f)' causing error

Offending code:

133     while ((val = strsep(&vals, ","))) {
134         /* Strip the single quotes off if they are there */
135         val = ast_strip_quoted(val, "'", "'");
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-10 10:09 lmadsen        Description Updated                          
2010-03-10 10:09 lmadsen        Additional Information Updated                  
 
======================================================================




More information about the asterisk-bugs mailing list