Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 May 1999 17:34:33 +0200 (CEST)
From:      shanee@augusta.de
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/11834: strange logsurfer behaviour
Message-ID:  <m10lDnF-000vtrC@rabbit.augusta.de>

next in thread | raw e-mail | index | archive | help

>Number:         11834
>Category:       ports
>Synopsis:       strange logsurfer behaviour
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 22 09:00:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Andreas Kohout
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Private Site
>Environment:

	logsurfer-1.41 from the ports

>Description:

	Stack overflow with empty config file

>How-To-Repeat:

	n/a

>Fix:
	
	

*** src/logsurfer.c.OLD	Mon Apr  8 17:15:53 1996
--- src/logsurfer.c	Sat Mar 20 16:58:19 1999
***************
*** 382,387 ****
--- 382,388 ----
  		(void) fprintf(stderr, "unable to allocate memory for logline_buffer\n");
  		exit(99);
  	}
+ 	logline_buffer[0]='\0';
  
  	while ( (opt = getopt(argc, argv, "fc:d:l:p:r:s")) != EOF )
  		switch(opt) {
*** src/readcf.c.OLD	Fri Feb 16 14:45:31 1996
--- src/readcf.c	Sat Mar 20 17:03:10 1999
***************
*** 112,117 ****
--- 112,118 ----
  		(void) fprintf(stderr, "memory problems reading configfile\n");
  		return(1);
  	}
+ 	buffer[0]='\0';
  	/* dito for one complete configline */
  	cfline_size=1024;
  	if ( (cfline=(char *)malloc(cfline_size)) == NULL ) {


>Release-Note:
>Audit-Trail:
>Unformatted:


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?m10lDnF-000vtrC>