From owner-cvs-all Thu Aug 19 12:47:17 1999 Delivered-To: cvs-all@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 03CF5151D0; Thu, 19 Aug 1999 12:47:06 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id PAA08513; Thu, 19 Aug 1999 15:45:47 -0400 (EDT) Date: Thu, 19 Aug 1999 15:45:47 -0400 (EDT) From: Daniel Eischen Message-Id: <199908191945.PAA08513@pcnet1.pcnet.com> To: bright@wintelcom.net, chris@calldei.com Subject: Re: cvs commit: src/lib/libc_r/uthread uthread_kern.c Cc: alfred@FreeBSD.org, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, eischen@vigrid.com, eivind@FreeBSD.org, jb@FreeBSD.org Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > ok, this should be it, does this look right to everyone: > > Index: uthread_cond.c > =================================================================== > RCS file: /home/ncvs/src/lib/libc_r/uthread/uthread_cond.c,v > retrieving revision 1.15 > diff -u -r1.15 uthread_cond.c > --- uthread_cond.c 1999/06/20 08:28:13 1.15 > +++ uthread_cond.c 1999/08/19 23:22:31 > @@ -261,6 +261,10 @@ > int rval = 0; > int status; > > + if (abstime->tv_sec < 0 || > + abstime->tv_nsec < 0 || abstime->tv_nsec >= 1000000000) > + return (EINVAL); > + > if (cond == NULL) > rval = EINVAL; You should also check for tv_nsec < 0. uthread_select.c also needs to validate the timeval passed in a similar fashion. Dan Eischen eischen@vigrid.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message