CVSROOT: /cvs Module name: src Changes by: [email protected] 2016/07/13 20:40:40
Modified files:
sys/kern : Tag: OPENBSD_5_8 kern_event.c
Log message:
backport 1.73
kevent validates that ident is a valid fd by getting the file. one sad
quirk: uint64 to int32 truncation can lead to false positives, and then
later in the array sizing code, very big mallocs panic the kernel.
add a check that the ident isn't larger than INT_MAX in the fd case.
reported by Tim Newsham
