From owner-freebsd-ports Sat May 22 9: 0: 5 1999 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 9B78A14CE9 for ; Sat, 22 May 1999 09:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA73913; Sat, 22 May 1999 09:00:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from inga.augusta.de (inga.augusta.de [193.175.23.65]) by hub.freebsd.org (Postfix) with ESMTP id 0924814BC9 for ; Sat, 22 May 1999 08:57:54 -0700 (PDT) (envelope-from shanee@rabbit.augusta.de) Received: from rabbit.UUCP (uucp@localhost) by inga.augusta.de (8.8.8/8.8.7) with UUCP id RAA25830 for freebsd.org!FreeBSD-gnats-submit; Sat, 22 May 1999 17:57:51 +0200 (MET DST) Received: from localhost (1361 bytes) by rabbit.augusta.de via sendmail with P:stdio/R:smart_host/T:uux (sender: ) (ident using unix) id for ; Sat, 22 May 1999 17:34:33 +0200 (CEST) (Smail-3.2.0.101 1997-Dec-17 #1 built CET-2-Jan) Message-Id: Date: Sat, 22 May 1999 17:34:33 +0200 (CEST) From: shanee@augusta.de Reply-To: shanee@augusta.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/11834: strange logsurfer behaviour Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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