#235 Fix segfault in case of an empty db connection string

trunk
closed-fixed
core (47)
5
2014-08-14
2012-07-19
Peter Lemenkov
No

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.

Discussion

  • 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

     
    • milestone: --> trunk
    • assigned_to: nobody --> bogdan_iancu
    • status: open --> closed-fixed