Skip to Content.
Sympa Menu

freetds - Re: Core Dumping Solution on FreeTDS-0.53pre1

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Johnny Elliott" <JWE AT homeaccess.net>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Re: Core Dumping Solution on FreeTDS-0.53pre1
  • Date: Tue, 6 Nov 2001 13:02:15 -0500


Unforturnatly, this is not the only place the code does a strlen on NULL
values.

For instance:

Back to the blank password, line 508 in the login.c file executes function
tds7_ascii2unicode which does a strlen of the password pointer. This also
causes a segfault. There seems to be a large number of locations where
this might be a problem.

Johnny

> Ok,
>
> Looking it over tds7_send_login computes the strlen() three times for each
> of the login fields. So i moved all the strlen()'s up top and checked for
> null there. Changes are in CVS if someone cares to try it.
>
> Brian
>
>




Archive powered by MHonArc 2.6.24.

Top of Page