mirror_ubuntu-kernels/drivers/net/wireless/realtek/rtlwifi
Kees Cook 0d5e743db4 rtlwifi: rtl8192de: Fully initialize curvecount_val
In preparation for FORTIFY_SOURCE performing compile-time and run-time
field bounds checking for memcpy(), memmove(), and memset(), avoid
intentionally writing across neighboring array fields.

The size argument to memset() is bytes, but the array element size
of curvecount_val is u32, so "CV_CURVE_CNT * 2" was only 1/4th of the
contents of curvecount_val. Adjust memset() to wipe full buffer size.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210617171317.3410722-1-keescook@chromium.org
2021-06-22 18:24:33 +03:00
..
btcoexist rtlwifi: btcoex: 21a 2ant: Delete several duplicate condition branch codes 2021-06-15 16:38:05 +03:00
rtl8188ee rtlwifi: rtl8188ee: remove redundant assignment of variable rtlpriv->btcoexist.reg_bt_sco 2021-04-17 20:30:01 +03:00
rtl8192c rtlwifi: rtl8192c-common: fix bool comparison in expressions 2021-01-25 16:21:05 +02:00
rtl8192ce rtlwifi: rtl8192ce: avoid accessing the data mapped to streaming DMA 2020-11-24 17:06:35 +02:00
rtl8192cu rtlwifi: Fix wrong function name in comments 2021-06-15 16:10:46 +03:00
rtl8192de rtlwifi: rtl8192de: Fully initialize curvecount_val 2021-06-22 18:24:33 +03:00
rtl8192ee rtlwifi: rtl8192ee: use true,false for bool variable large_cfo_hit 2020-09-22 10:17:42 +03:00
rtl8192se rtlwifi: Fix spelling of 'download' 2021-06-15 16:40:54 +03:00
rtl8723ae rtlwifi: rtl8723ae: remove redundant initialization of variable rtstatus 2021-06-15 16:39:37 +03:00
rtl8723be rtlwifi: rtl8723be: Remove set but unused variable 'cck_highpwr' 2020-11-07 18:14:45 +02:00
rtl8723com rtlwifi: Use ffs in <foo>_phy_calculate_bit_shift 2020-09-22 10:16:41 +03:00
rtl8821ae rtlwifi: 8821ae: upgrade PHY and RF parameters 2021-04-17 20:26:39 +03:00
base.c net: rtlwifi: properly check for alloc_workqueue() failure 2021-05-13 17:30:26 +02:00
base.h net: rtlwifi: Remove void* casts related to delayed work 2020-09-29 14:02:55 -07:00
cam.c rtlwifi: Remove redundant assignments to ul_enc_algo 2021-06-15 16:39:55 +03:00
cam.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
core.c rtlwifi: implement set_tim by update beacon content 2021-04-21 12:39:33 +03:00
core.h rtlwifi: implement set_tim by update beacon content 2021-04-21 12:39:33 +03:00
debug.c net: rtlwifi: Remove in_interrupt() from debug macro 2020-09-29 14:02:55 -07:00
debug.h net: rtlwifi: Remove in_interrupt() from debug macro 2020-09-29 14:02:55 -07:00
efuse.c rtlwifi: Replace RT_TRACE with rtl_dbg 2020-08-31 18:25:43 +03:00
efuse.h rtlwifi: Remove CamelCase variables from base code 2019-02-19 17:02:51 +02:00
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
pci.c net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
pci.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
ps.c rtlwifi: rtl_pci: fix bool comparison in expressions 2021-01-25 16:21:01 +02:00
ps.h net: rtlwifi: Replace in_interrupt() for context detection 2020-09-29 14:02:55 -07:00
pwrseqcmd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
rc.c mac80211: populate debugfs only after cfg80211 init 2020-04-24 11:30:13 +02:00
rc.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
regd.c rtlwifi: Replace RT_TRACE with rtl_dbg 2020-08-31 18:25:43 +03:00
regd.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
stats.c rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
stats.h rtlwifi: Replace old-style license information 2019-02-19 16:59:43 +02:00
usb.c rtlwifi: implement set_tim by update beacon content 2021-04-21 12:39:33 +03:00
usb.h rtlwifi: Fix blank line errors in main header files 2019-02-28 10:30:01 +02:00
wifi.h rtlwifi: implement set_tim by update beacon content 2021-04-21 12:39:33 +03:00