Skip to Content.
Sympa Menu

freetds - RE: segfault in src/ctlib/ctutil.c:83

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Castellano, Nicholas" <Nicholas_Castellano AT acml.com>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: RE: segfault in src/ctlib/ctutil.c:83
  • Date: Thu, 14 Nov 2002 14:42:21 -0500


I already fixed this NULL pointer dereference in ctutil.c revision 1.12 on
23 Sep 2002. It isn't necessary to pass a NULL context as you suggest,
since we just computed an appropriate context (ctx).

Cheers,
--nick

-----Original Message-----
From: bounce-freetds-145195 AT franklin.oit.unc.edu
[mailto:bounce-freetds-145195 AT franklin.oit.unc.edu]
Sent: Thursday, November 14, 2002 1:53 PM
To: TDS Development Group
Subject: [freetds] segfault in src/ctlib/ctutil.c:83


The following code dereferences a NULL pointer in ctutil.c

if (!con) {
ctx = (CS_CONTEXT *) ctx_tds->parent;
if (ctx->_servermsg_cb)
ret = ctx->_servermsg_cb(con->ctx,con,&errmsg);
^^^^^^^^

attached is a simple patch to call servermsg_cb with a null context in this
case

--
It's looking like if MySQL AB doesn't make a movie based on the manual,
nobody's ever gonna learn how to use a database.
- r.


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page