From owner-freebsd-bugs Thu Oct 31 15:00:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA14710 for bugs-outgoing; Thu, 31 Oct 1996 15:00:06 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id PAA14666; Thu, 31 Oct 1996 15:00:03 -0800 (PST) Resent-Date: Thu, 31 Oct 1996 15:00:03 -0800 (PST) Resent-Message-Id: <199610312300.PAA14666@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, archie@whistle.com Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id OAA14226 for ; Thu, 31 Oct 1996 14:50:30 -0800 (PST) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id OAA09266 for ; Thu, 31 Oct 1996 14:49:59 -0800 (PST) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma009262; Thu Oct 31 14:49:39 1996 Received: (from archie@localhost) by bubba.whistle.com (8.7.5/8.6.12) id OAA01294; Thu, 31 Oct 1996 14:49:39 -0800 (PST) Message-Id: <199610312249.OAA01294@bubba.whistle.com> Date: Thu, 31 Oct 1996 14:49:39 -0800 (PST) From: Archie Cobbs Reply-To: archie@whistle.com To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1937: minor bug in inetd(8) Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1937 >Category: bin >Synopsis: incorrect buffer initialization >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Oct 31 15:00:01 PST 1996 >Last-Modified: >Originator: Archie Cobbs >Organization: Whistle Communications, Inc. >Release: FreeBSD 2.2-960801-SNAP i386 >Environment: >Description: Incorrect length argument to memset() function >How-To-Repeat: >Fix: Index: inetd.c =================================================================== RCS file: /tribe/cvs/freebsd/src/usr.sbin/inetd/inetd.c,v retrieving revision 1.14 diff -c -r1.14 inetd.c *** inetd.c 1996/10/28 23:02:38 1.14 --- inetd.c 1996/10/31 22:47:40 *************** *** 354,360 **** #define DUMMYSIZE 100 char dummy[DUMMYSIZE]; ! (void)memset(dummy, 'x', sizeof(DUMMYSIZE) - 1); dummy[DUMMYSIZE - 1] = '\0'; (void)setenv("inetd_dummy", dummy, 1); } --- 354,360 ---- #define DUMMYSIZE 100 char dummy[DUMMYSIZE]; ! (void)memset(dummy, 'x', DUMMYSIZE - 1); dummy[DUMMYSIZE - 1] = '\0'; (void)setenv("inetd_dummy", dummy, 1); } >Audit-Trail: >Unformatted: