OpenCloudOS-Kernel/drivers/net/wireless/ath/wcn36xx
Kees Cook d3a1a18ab0 wcn36xx: Avoid memset() beyond end of struct field
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memset(), avoid intentionally writing across
neighboring array fields.

Instead of writing past the end of the header to reach the rest of
the body, replace the redundant function with existing macro to wipe
struct contents and set field values. Additionally adjusts macro to add
missing parens.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210617171058.3410494-1-keescook@chromium.org
2021-06-22 18:28:25 +03:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
debug.c wireless: Use octal not symbolic permissions 2018-03-27 11:01:13 +03:00
debug.h
dxe.c wcn36xx: Fix inconsistent indenting 2021-06-14 18:20:21 +03:00
dxe.h wcn36xx: Remove useless skb spinlock 2018-04-10 17:39:50 +03:00
hal.h wcn36xx: Add GTK offload info to WoWLAN resume 2021-06-14 18:18:15 +03:00
main.c wcn36xx: Move hal_buf allocation to devm_kmalloc in probe 2021-06-14 18:27:07 +03:00
pmc.c wcn36xx: Advertise beacon filtering support in bmps 2020-10-01 22:34:04 +03:00
pmc.h
smd.c wcn36xx: Avoid memset() beyond end of struct field 2021-06-22 18:28:25 +03:00
smd.h wcn36xx: Add host resume request support 2021-06-14 18:18:17 +03:00
testmode.c netlink: make validation more configurable for future strictness 2019-04-27 17:07:21 -04:00
testmode.h wcn36xx: Replace zero-length array with flexible-array 2020-05-13 19:03:06 +03:00
testmode_i.h wcn36xx: Add support for Factory Test Mode (FTM) 2018-05-25 13:17:28 +03:00
txrx.c wcn36xx: Specify ieee80211_rx_status.nss 2020-09-02 11:48:26 +03:00
txrx.h wcn36xx: let device generate qos seq numbers 2015-01-23 19:11:58 +02:00
wcn36xx.h wcn36xx: Add set_rekey_data callback 2021-06-14 18:18:14 +03:00