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.
1 parent 6a5464a commit a6caa32Copy full SHA for a6caa32
src/unix/linux_like/linux/mod.rs
@@ -5138,7 +5138,7 @@ f! {
5138
as *mut cmsghdr;
5139
let max = (*mhdr).msg_control as usize
5140
+ (*mhdr).msg_controllen as usize;
5141
- if (next.offset(1)) as usize > max ||
+ if (next.wrapping_offset(1)) as usize > max ||
5142
next as usize + super::CMSG_ALIGN((*next).cmsg_len as usize) > max
5143
{
5144
0 as *mut cmsghdr
0 commit comments