summaryrefslogtreecommitdiff
path: root/bors.toml
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2019-02-12 11:22:18 -0700
committerAlan Somers <asomers@gmail.com>2019-02-14 10:15:50 -0700
commit15ed5a539e4014da51c8ee8593ab6f46fba2d00c (patch)
tree643b36be2532580e0771ad8822605e9764b79197 /bors.toml
parente0f612df5a232e058e4188502ab11b533cc78608 (diff)
downloadnix-15ed5a539e4014da51c8ee8593ab6f46fba2d00c.zip
Fix misaligned references when using recvmsg with control messages
On some platforms the alignment of cmsg_data could be less than the alignment of the messages that it contains. That led to unaligned reads on those platforms. This change fixes the issue by always copying the message contents into aligned objects. The change is not 100% backwards compatible when using recvmsg. Users may have to replace code like this: ```rust if let ControlMessage::ScmRights(&fds) = cmsg { ``` with this: ```rust if let ControlMessageOwned::ScmRights(fds) = cmsg { ``` Fixes #999
Diffstat (limited to 'bors.toml')
0 files changed, 0 insertions, 0 deletions