[freetds] [ freetds-Patches-1089970 ] single byte _bcp_read_hostfile leak
SourceForge.net
noreply at sourceforge.net
Wed Dec 22 15:13:04 EST 2004
Patches item #1089970, was opened at 2004-12-22 20:17
Message generated for change (Comment added) made by freddy77
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1089970&group_id=33106
Category: db-lib
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Brad Rittenhouse (brittenh)
Assigned to: Nobody/Anonymous (nobody)
Summary: single byte _bcp_read_hostfile leak
Initial Comment:
The context for the leak is when collen is equal to 0
and data_is_null is equal to 1.
The allocation for coldata is done for a single byte
and does not get freed if you fall into both of the
following if statements:
if (hostcol->tab_column) {
if (data_is_null) {
...
The diff is against version 1.106 of src/dblib/bcp.c
----------------------------------------------------------------------
>Comment By: Frediano Ziglio (freddy77)
Date: 2004-12-22 21:13
Message:
Logged In: YES
user_id=75766
Fixed in both 0.63 and 0.64 (HEAD)
--
freddy77
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1089970&group_id=33106
More information about the FreeTDS
mailing list