aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-06-21 21:44:46 +0000
committerSteve French <[email protected]>2021-06-22 02:39:46 +0000
commitfbcff33d4204cbcb8e60faa3465a2156fdda398a (patch)
tree22791ddeee3647d405c7a86d580a445ec62e4d42 /net/switchdev/switchdev.c
parentsmb311: remove dead code for non compounded posix query info (diff)
downloadkernel-fbcff33d4204cbcb8e60faa3465a2156fdda398a.tar.gz
kernel-fbcff33d4204cbcb8e60faa3465a2156fdda398a.zip
cifs: Avoid field over-reading memcpy()
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memcpy(), memmove(), and memset(), avoid intentionally reading across neighboring fields. Instead of using memcpy to read across multiple struct members, just perform per-member assignments as already done for other members. Signed-off-by: Kees Cook <[email protected]> Signed-off-by: Steve French <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions