Skip to Content.
Sympa Menu

freetds - Re: More info on Core Dump

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Brian Bruns <camber AT umcc.ais.org>
  • To: TDS Development Group <freetds AT franklin.oit.unc.edu>
  • Subject: Re: More info on Core Dump
  • Date: Mon, 12 Jul 1999 21:08:04 -0400 (EDT)


Ok, the fix is in CVS or for your patching enjoyment here's the patch:

[camber@amd133 tds]$ diff login.c login.orig
45,48c45
< if (password) {
< strncpy(tds_login->password, password,
< sizeof(tds_login->password));
< }
---
> strncpy(tds_login->password, password,sizeof(tds_login->password));

It seems to work for me anyway.

Brian

On Mon, 12 Jul 1999, Timothy Balcer wrote:

> Quoting Timothy Balcer <timothy AT ennui.net>:
>
> This error seems to be resulting from a null password. Is there an easy fix
> for
> this? (yes.. I know. null passwords are bad. :)
>
> > Now I am definitely perplexed...
> >
> > Starting program: /u1/dbms/sqsh-1.7/./sqsh
> > sqsh-1.7 Copyright (C) 1995-1999 Scott C. Gray
> > This is free software with ABSOLUTELY NO WARRANTY
> > For more information type '\warranty'
> > Password:
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > strncpy (s1=0x807783c "", s2=0x0, n=30) at ../sysdeps/generic/strncpy.c:37
> > ../sysdeps/generic/strncpy.c:37: No such file or directory.
> > (gdb)
> >
> > Thanks in advance for any help anyone can give!
> >
> > -Timothy Balcer
> >
> > ---
> > You are currently subscribed to freetds as: timothy AT ennui.net
> > To unsubscribe, forward this message to
> > $subst('Email.Unsub')
> >
>
> ---
> You are currently subscribed to freetds as: camber AT ais.org
> To unsubscribe, forward this message to $subst('Email.Unsub')
>
>





Archive powered by MHonArc 2.6.24.

Top of Page