segfaults in ResultSet_free
Jan-Henrik Haukeland
hauk at tildeslash.com
Mon Apr 7 02:25:37 CEST 2008
On 6. april. 2008, at 22.04, Paul J Stevens wrote:
> Found what caused the segfault.
>
> A bug in my own code. Thing is I assigned a value to an out-of-bounds
> parameter. Doing so causes segfaults in the ResetSet_free code.
> Would it
> be possible to raise an SQLException in those cases instead?
libzdb should already throw an exception in that case, but
unfortunately, both in mysql and postgresql we had an off-by-one bug
when testing parameter and column index, so your invalid parameter
index slipped through. A bug fix is checked in.
More information about the libzdb-general
mailing list