Skip to Content.
Sympa Menu

freetds - freetds-0.51 patch

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Andrejs Dubovskis <adu AT lmt.lv>
  • To: camber AT ais.org
  • Cc: freetds AT franklin.oit.unc.edu
  • Subject: freetds-0.51 patch
  • Date: Tue, 20 Feb 2001 11:15:34 +0200


Hi,

when SQSH 1.7 is runing and no password entered SQSH calls
ct_con_props function with buffer=0x0 (buflen at the same time is 5).
Without following patch sqsh generates coredump.

Best regards, Andrejs

*** freetds-0.51/src/ctlib/ct.c.orig Sat Nov 4 22:41:43 2000
--- freetds-0.51/src/ctlib/ct.c Tue Feb 20 10:54:29 2001
***************
*** 121,126 ****
--- 121,130 ----
if (action==CS_SET) {
if (property == CS_USERNAME || property == CS_PASSWORD
|| property == CS_APPNAME || property == CS_HOSTNAME)
{
+ if (buffer == NULL) {
+ set_buffer = (char *)malloc(1);
+ *set_buffer = 0 ;
+ } else
if (buflen == CS_NULLTERM) {
maxcp = strlen(buffer);
set_buffer = (char *)malloc(maxcp + 1);



  • freetds-0.51 patch, Andrejs Dubovskis, 02/20/2001

Archive powered by MHonArc 2.6.24.

Top of Page