[OpenSIPS-Devel] [ opensips-Patches-3545893 ] Fix segfault in case of an empty db connection string

SourceForge.net noreply at sourceforge.net
Thu Jul 19 16:48:55 CEST 2012


Patches item #3545893, was opened at 2012-07-19 07:48
Message generated for change (Tracker Item Submitted) made by peter_lemenkov
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3545893&group_id=232389

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: core
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Peter Lemenkov (peter_lemenkov)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix segfault in case of an empty db connection string

Initial Comment:
If db connection string is shorter than SHORTEST_DB_URL_LEN required then program jumps to the error handles where performs resource freeing. In this case this will lead to a memory corruption/segfault since the object to be freed wasn't properly initialized yet.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=1086412&aid=3545893&group_id=232389



More information about the Devel mailing list