Page MenuHomeFreeBSD

D30233.id89081.diff
No OneTemporary

D30233.id89081.diff

Index: sys/kern/kern_time.c
===================================================================
--- sys/kern/kern_time.c
+++ sys/kern/kern_time.c
@@ -1652,6 +1652,8 @@
if (ts->tv_sec < 0 || ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
return (EINVAL);
+ if ((UINT64_MAX - ts->tv_nsec) / 1000000000 < ts->tv_sec)
+ return (EINVAL);
if (ts->tv_sec == 0 && ts->tv_nsec != 0 && ts->tv_nsec < tick * 1000)
ts->tv_nsec = tick * 1000;
return (0);

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 15, 12:44 PM (9 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15810710
Default Alt Text
D30233.id89081.diff (456 B)

Event Timeline