[freetds] Bug in ct_get_data
ZIGLIO, Frediano, VF-IT
Frediano.Ziglio at vodafone.com
Mon Jan 17 05:25:34 EST 2005
>
> Eddy,
>
> thanks for the report, and welcome to the project!
>
> Your fix makes functional sense.
>
> We have a function for determining the null-ness of a returned datum.
>
> using this, I think your fix would look like:
>
> - srclen = curcol->column_cur_size;
> + if (tds_get_null(resinfo->current_row, (item - 1)))
> + srclen = 0;
> + else
> + srclen = curcol->column_cur_size;
>
> Would you like to check that out with your program ?
>
> Thanks again,
>
> Bill
>
A bit longer but fix also some buffer overflows and possible core if
column it's not a blob.
freddy77
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vedi.diff
Type: application/octet-stream
Size: 5932 bytes
Desc: vedi.diff
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20050117/5c7fa1e4/vedi.obj
More information about the FreeTDS
mailing list