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

SourceForge.net noreply at sourceforge.net
Tue Aug 7 23:53:50 CEST 2012


Patches item #3545893, was opened at 2012-07-19 07:48
Message generated for change (Comment added) made by bogdan_iancu
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: trunk
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Peter Lemenkov (peter_lemenkov)
>Assigned to: Bogdan-Andrei Iancu (bogdan_iancu)
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.

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

>Comment By: Bogdan-Andrei Iancu (bogdan_iancu)
Date: 2012-08-07 14:53

Message:
Hi Peter,

Thanks for the reporting and patch - I applied the patch in a slightly
modified version, but mainly doing the same. The fix is on trunk, 1.8 and
1.7

Best regards,
Bogdan

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

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