[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:42:15 CST 2008
A NOTE has been added to this issue.
======================================================================
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: closed
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:
Resolution: fixed
Fixed in Version:
======================================================================
Date Submitted: 01-03-2008 11:34 CST
Last Modified: 01-03-2008 15:42 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
======================================================================
----------------------------------------------------------------------
Corydon76 - 01-03-08 15:42
----------------------------------------------------------------------
This was committed, because the fix was simply functional. However, in the
future, please submit a license agreement and upload your changes as
patches (as files).
Issue History
Date Modified Username Field Change
======================================================================
01-03-08 15:42 Corydon76 Note Added: 0076268
======================================================================
More information about the asterisk-bugs
mailing list