Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Jan 2002 14:30:01 -0800 (PST)
From:      "Scot W. Hetzel" <hetzels@westbend.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/34059: New port
Message-ID:  <200201262230.g0QMU1e58522@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/34059; it has been noted by GNATS.

From: "Scot W. Hetzel" <hetzels@westbend.net>
To: freebsd-gnats-submit@FreeBSD.org, todorov_bg@gmx.net
Cc:  
Subject: Re: ports/34059: New port
Date: Sat, 26 Jan 2002 16:25:37 -0600 (CST)

 I have tested this port, and found one problem in the
 code that caused it to terminate with a signal 11,
 Segmentation fault.  I was able to find the problem in
 the socket_getline function.  This function was trying
 to assign a string to a char * variable, that hadn't
 been malloc'd.
 
 The following patch fixes the problem.
 
 
 --- socket.c.orig	Tue Apr 17 21:54:11 2001
 +++ socket.c	Sat Jan 26 15:38:48 2002
 @@ -120,7 +120,7 @@
  int socket_getline (struct postsocket *sock)
  {
  	char * pch;
 -	char * msg;
 +	char msg[1024];
  
  	char endch = '\0';
  

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201262230.g0QMU1e58522>