Date: Thu, 31 Oct 1996 14:49:39 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/1937: minor bug in inetd(8) Message-ID: <199610312249.OAA01294@bubba.whistle.com> Resent-Message-ID: <199610312300.PAA14666@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610312249.OAA01294>
