aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2021-05-21 02:56:15 +0000
committerKees Cook <[email protected]>2021-09-25 15:20:48 +0000
commit69dae0fe1073944065fff0f7fe24cde6e150ee9d (patch)
treee8a039a46b42c3e71befea74608a7197a805ac71 /lib/string.c
parentHID: cp2112: Use struct_group() for memcpy() region (diff)
downloadkernel-69dae0fe1073944065fff0f7fe24cde6e150ee9d.tar.gz
kernel-69dae0fe1073944065fff0f7fe24cde6e150ee9d.zip
HID: roccat: Use struct_group() to zero kone_mouse_event
In preparation for FORTIFY_SOURCE performing compile-time and run-time field bounds checking for memset(), avoid intentionally writing across neighboring fields. Add struct_group() to mark region of struct kone_mouse_event that should be initialized to zero. Cc: Stefan Achatz <[email protected]> Cc: Benjamin Tissoires <[email protected]> Cc: [email protected] Acked-by: Jiri Kosina <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'lib/string.c')
0 files changed, 0 insertions, 0 deletions