diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-04-08 03:32:06 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 03:32:06 +0000 |
commit | 2cef18bcf1dffe1662c62424543a348ddbd839ea (patch) | |
tree | 7b13fa4d35fa94b73b959fb6cec441de152bc731 /src/sys/personality.rs | |
parent | d6d58338869326420b30aac16efc3b53a8375d8e (diff) | |
parent | 50fc2dbdfac25b228d7f7907a5ef471ac226b190 (diff) | |
download | nix-2cef18bcf1dffe1662c62424543a348ddbd839ea.zip |
Merge #1414
1414: Fix corrupted sendmmsg() call r=asomers a=eaufavor
Before this fix, the buffer that holds cmsgs may move due to the resize()
call. That causes msg_hdr pointing to invalid memory, which ends up
breaking the sendmmsg() call, resulting in EINVAL.
This change fixes it by avoiding re-allocating the buffers.
Co-authored-by: Yuchen Wu <yuchen@cloudflare.com>
Diffstat (limited to 'src/sys/personality.rs')
0 files changed, 0 insertions, 0 deletions