Date: Wed, 31 Jan 2001 08:16:59 -0600 From: "Jacques A. Vidrine" <n@nectar.com> To: FreeBSD-audit <FreeBSD-audit@freebsd.org> Cc: Mike Heffner <mheffner@vt.edu> Subject: [UPDATED] Re: patch for libc/net/hesiod.c Message-ID: <20010131081659.C4720@hamlet.nectar.com> In-Reply-To: <XFMail.20010130230121.mheffner@vt.edu>; from mheffner@vt.edu on Tue, Jan 30, 2001 at 11:01:21PM -0500 References: <XFMail.20010130230121.mheffner@vt.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
This is the patch I think should be applied. Comments?
Thanks, Mike, for checking this stuff out!
diff -u -r1.3 hesiod.c
--- hesiod.c 2000/09/30 17:29:54 1.3
+++ hesiod.c 2001/01/31 14:16:06
@@ -162,7 +162,10 @@
const char *rhs;
int len;
- strcpy(bindname, name);
+ if (strlcpy(bindname, name, sizeof(bindname)) >= sizeof(bindname)) {
+ errno = EMSGSIZE;
+ return NULL;
+ }
/*
* Find the right right hand side to use, possibly
Cheers,
--
Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010131081659.C4720>
