[asterisk-bugs] [Asterisk 0011671]: Using static realtime configuration with postgres crashes Asterisk on startup
noreply at bugs.digium.com
noreply at bugs.digium.com
Thu Jan 3 15:27:18 CST 2008
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=11671
======================================================================
Reported By: tiziano
Assigned To: Corydon76
======================================================================
Project: Asterisk
Issue ID: 11671
Category: Resources/res_config_pgsql
Reproducibility: always
Severity: major
Priority: normal
Status: assigned
Asterisk Version: 1.4.17
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 01-03-2008 11:34 CST
Last Modified: 01-03-2008 15:27 CST
======================================================================
Summary: Using static realtime configuration with postgres
crashes Asterisk on startup
Description:
In
res_config_pgsql.c
there is a string pointer used but not initialized to any storage area; so
a:
Segmentation fault
is generated every time a static realtime configuration is used.
The broken function is:
config_pgsql (line 492 on 1.4.17 release)
the variable is:
char *sql; (line 501 on 1.4.17 release)
and should be
char *sql = sqlbuf;
I found the error in 1.4.15 for the first time (I've note searched before)
and it's still there
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
01-03-08 15:27 Corydon76 Status new => assigned
01-03-08 15:27 Corydon76 Assigned To => Corydon76
======================================================================
More information about the asterisk-bugs
mailing list