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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Apr 12 22:34:16 CDT 2010


The following issue is now READY FOR TESTING. 
====================================================================== 
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:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-1058 
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-04-12 22:34 CDT
====================================================================== 
Summary:                    [patch] 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-04-12 22:34 tilghman       Status                   acknowledged => ready
for testing
======================================================================




More information about the asterisk-bugs mailing list