Core Dumping Solution on FreeTDS-0.53pre1

Johnny Elliott JWE at homeaccess.net
Tue Nov 6 13:02:15 EST 2001


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



More information about the FreeTDS mailing list