91d99a724e
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> |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
asm-offsets.c | ||
cpuinfo.c | ||
entry.S | ||
head.S | ||
insnemu.S | ||
irq.c | ||
kgdb.c | ||
misaligned.c | ||
module.c | ||
nios2_ksyms.c | ||
process.c | ||
prom.c | ||
ptrace.c | ||
setup.c | ||
signal.c | ||
sys_nios2.c | ||
syscall_table.c | ||
time.c | ||
traps.c | ||
vmlinux.lds.S |