linux/arch/nios2
Wang Xiayang 91d99a724e nios2: force the string buffer NULL-terminated
strncpy() does not ensure NULL-termination when the input string
size equals to the destination buffer size COMMAND_LINE_SIZE.
Besides, grep under arch/ with 'boot_command_line' shows
no other arch-specific code uses strncpy() when copying
boot_command_line.

Use strlcpy() instead.

This issue is identified by a Coccinelle script.

Signed-off-by: Wang Xiayang <xywang.sjtu@sjtu.edu.cn>
Signed-off-by: Ley Foon Tan <ley.foon.tan@intel.com>
2019-09-20 14:55:57 +08:00
..
boot treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 201 2019-05-30 11:29:52 -07:00
configs nios2: configs: Remove useless UEVENT_HELPER_PATH 2019-07-04 13:35:38 +08:00
include dma-mapping updates for Linux 5.3 2019-07-12 15:13:55 -07:00
kernel nios2: force the string buffer NULL-terminated 2019-09-20 14:55:57 +08:00
lib treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 234 2019-06-19 17:09:07 +02:00
mm nios2: use the generic uncached segment support in dma-direct 2019-06-25 14:28:06 +02:00
platform treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig nios2: use the generic uncached segment support in dma-direct 2019-06-25 14:28:06 +02:00
Kconfig.debug nios2: remove pointless second entry for CONFIG_TRACE_IRQFLAGS_SUPPORT 2019-07-04 11:32:09 +08:00
Makefile kbuild: consolidate Devicetree dtb build rules 2018-10-02 09:23:21 -05:00