summaryrefslogtreecommitdiff
path: root/src/sys/socket/sockopt.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-04-19 19:44:19 +0000
committerGitHub <noreply@github.com>2020-04-19 19:44:19 +0000
commitfdf828bc5f47ae0b47ac3a99252e6a9616aba320 (patch)
tree32ea0c2c46dabf47461422696529ba3d28eaedfe /src/sys/socket/sockopt.rs
parent154ff5875c50eab8bb4d7310ca9859c9c17c4031 (diff)
parent0a99945e5c8be0d37661a73bccf7fc715bc59610 (diff)
downloadnix-fdf828bc5f47ae0b47ac3a99252e6a9616aba320.zip
Merge #1206
1206: Fix unaligned casting of cmsg data to af_alg_iv r=asomers a=glebpom Casting a pointer to `cmsg_data` to `af_alg_iv` is incorrect since it's not properly aligned. As of the [`cmsg` man page](http://man7.org/linux/man-pages/man3/cmsg.3.html) "Applications should not cast it to a pointer type matching the payload, but should instead use memcpy(3) to copy data to or from a suitably declared object." Co-authored-by: Gleb Pomykalov <gleb@lancastr.com>
Diffstat (limited to 'src/sys/socket/sockopt.rs')
0 files changed, 0 insertions, 0 deletions