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.
2 parents 086bd0b + dc88f4c commit 73efe14Copy full SHA for 73efe14
src/unix/linux_like/linux/mod.rs
@@ -4650,7 +4650,7 @@ f! {
4650
as *mut cmsghdr;
4651
let max = (*mhdr).msg_control as usize
4652
+ (*mhdr).msg_controllen as usize;
4653
- if (next.offset(1)) as usize > max ||
+ if (next.wrapping_offset(1)) as usize > max ||
4654
next as usize + super::CMSG_ALIGN((*next).cmsg_len as usize) > max
4655
{
4656
0 as *mut cmsghdr
0 commit comments