aboutsummaryrefslogtreecommitdiff
path: root/scripts/bpf_doc.py
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2022-06-08 14:55:12 -0700
committerGreg Kroah-Hartman <[email protected]>2022-06-10 09:10:16 +0200
commit67ea0a2adbf667cd6da4965fbcfd0da741035084 (patch)
treebab611d33b4ca712b2e44b6afc23d898118bdd66 /scripts/bpf_doc.py
parentde0952f267ffe9d4ecbfeab7c476f7e29e028b3e (diff)
staging: rtl8723bs: Allocate full pwep structure
The pwep allocation was always being allocated smaller than the true structure size. Avoid this by always allocating the full structure. Found with GCC 12 and -Warray-bounds: ../drivers/staging/rtl8723bs/os_dep/ioctl_linux.c: In function 'rtw_set_encryption': ../drivers/staging/rtl8723bs/os_dep/ioctl_linux.c:591:29: warning: array subscript 'struct ndis_802_11_wep[0]' is partly outside array bounds of 'void[25]' [-Warray-bounds] 591 | pwep->length = wep_total_len; | ^~ Cc: Greg Kroah-Hartman <[email protected]> Cc: Fabio Aiuto <[email protected]> Cc: Hans de Goede <[email protected]> Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions