Date: Thu, 19 Aug 1999 15:45:47 -0400 (EDT) From: Daniel Eischen <eischen@vigrid.com> To: bright@wintelcom.net, chris@calldei.com Cc: alfred@FreeBSD.org, cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, eischen@vigrid.com, eivind@FreeBSD.org, jb@FreeBSD.org Subject: Re: cvs commit: src/lib/libc_r/uthread uthread_kern.c Message-ID: <199908191945.PAA08513@pcnet1.pcnet.com>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908191945.PAA08513>