Skip to Content.
Sympa Menu

freetds - RE: [freetds] Bug in ct_get_data

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] Bug in ct_get_data
  • Date: Mon, 17 Jan 2005 11:25:34 +0100

>
> 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

Attachment: vedi.diff
Description: vedi.diff




Archive powered by MHonArc 2.6.24.

Top of Page