freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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
-
[freetds] Bug in ct_get_data,
Edward Macnaghten, 01/17/2005
- <Possible follow-up(s)>
- RE: [freetds] Bug in ct_get_data, Thompson, Bill D (London), 01/17/2005
- RE: [freetds] Bug in ct_get_data, ZIGLIO, Frediano, VF-IT, 01/17/2005
Archive powered by MHonArc 2.6.24.