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

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Sep 28 12:23:16 CDT 2008


The following issue has been ASSIGNED. 
====================================================================== 
http://bugs.digium.com/view.php?id=13574 
====================================================================== 
Reported By:                navkumar
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   13574
Category:                   Resources/res_config_pgsql
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
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-28 12:23 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-28 12:23 Corydon76      Status                   new => assigned     
2008-09-28 12:23 Corydon76      Assigned To               => Corydon76       
======================================================================




More information about the asterisk-bugs mailing list