We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nchanges
nevents
kevent
1 parent 6c00987 commit 1f9837cCopy full SHA for 1f9837c
src/backend/libc/io/syscalls.rs
@@ -469,9 +469,15 @@ pub(crate) unsafe fn kevent(
469
ret_c_int(c::kevent(
470
borrowed_fd(kq),
471
changelist.as_ptr() as *const _,
472
- changelist.len() as _,
+ changelist
473
+ .len()
474
+ .try_into()
475
+ .map_err(|_| io::Errno::OVERFLOW)?,
476
eventlist.as_mut_ptr() as *mut _,
- eventlist.len() as _,
477
+ eventlist
478
479
480
481
timeout.map_or(core::ptr::null(), |t| t as *const _),
482
))
483
}
0 commit comments