Date: Sat, 10 May 1997 15:42:38 +1000 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, brian@awfulhak.org Cc: ache@nagual.pp.ru, brian@FreeBSD.ORG, cvs-all@FreeBSD.ORG, CVS-committers@FreeBSD.ORG, cvs-usrsbin@FreeBSD.ORG Subject: Re: cvs commit: src/usr.sbin/ppp timer.c Message-ID: <199705100542.PAA06971@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> Actually it is, read the kernel source :-). The kernel checks the interval >> even when it doesn't use it and fails without doing anything if the interval >> is garbage (tv_sec < 0 || tv_sec > 10^8 || tv_usec < 0 || tv_usec >= 10^6). > >Should I fix kern/kern_time.c then ? I checked some other systems: FreeBSD-1.1.5: same as now. Overflows are avoided for starting times between 1970 and 1935 by limiting itimer values to about 3 years. Linux-2.1.29: timevals are converted to jiffies and not used again; some overflows are corrected, others give silly times. Bruce
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199705100542.PAA06971>