[asterisk-bugs] [Asterisk 0013574]: [Patch] Fix false string allocation in realtime_pgsql_store where creating INSERT

Asterisk Bug Tracker noreply at bugs.digium.com
Sat Sep 27 19:10:42 CDT 2008


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13574 
====================================================================== 
Reported By:                navkumar
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13574
Category:                   Resources/res_config_pgsql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-09-27 19:10 CDT
Last Modified:              2008-09-27 19:10 CDT
====================================================================== 
Summary:                    [Patch] Fix false string allocation in
realtime_pgsql_store where creating INSERT
Description: 
The realtime store_func does not work properly in res_config_pgsql. When
composing the INSERT statements, sizeof is used instead of strlen for
newparam and newval.  Both of these are of type 'const char *' and this
leads to improper string allocation and editing. 
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-09-27 19:10 navkumar       Asterisk Version          => SVN             
2008-09-27 19:10 navkumar       SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list