linux/drivers/staging/rtl8723bs
Colin Ian King 2e85ccf13a staging: rtl8723bs: ensure cmd is large enough for %4s scanf format
char array cmd is being scanned in using a %4s scanf format
specifier and so cmd must be an array of 5 chars. Increase size
to 5 chars to ensure we don't have an overflow.

Detected with static analysis by cppcheck:

"(error) Width 4 given in format string (no. 1) is larger than
destination buffer 'cmd[4]', use %3s to prevent overflowing it."

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-04-14 10:22:03 +02:00
..
core staging: rtl8723bs: fix spelling mistakes in RT_TRACE messages 2017-04-11 16:00:54 +02:00
hal staging: rtl8723bs: fix spelling mistake: "acquire" 2017-04-11 16:00:54 +02:00
include
os_dep staging: rtl8723bs: ensure cmd is large enough for %4s scanf format 2017-04-14 10:22:03 +02:00
Kconfig staging: rtl8723bs: force driver to be built as a module. 2017-04-11 07:35:53 +02:00
Makefile
TODO