mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 23:23:55 +08:00
994fed2dd2
This error was reported by cppcheck: arch/mips/loongson/common/machtype.c:56: error: Dangerous usage of 'str' (strncpy doesn't always 0-terminate it) If strncpy copied MACHTYPE_LEN bytes, the destination string str was not terminated. The patch adds one more byte to str and makes sure that this byte is always 0. Signed-off-by: Stefan Weil <weil@mail.berlios.de> Cc: Wu Zhangjin <wuzhangjin@gmail.com> Cc: Arnaud Patard <apatard@mandriva.com> Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/2053/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org> |
||
---|---|---|
.. | ||
cs5536 | ||
bonito-irq.c | ||
cmdline.c | ||
early_printk.c | ||
env.c | ||
gpio.c | ||
init.c | ||
irq.c | ||
machtype.c | ||
Makefile | ||
mem.c | ||
pci.c | ||
platform.c | ||
pm.c | ||
reset.c | ||
rtc.c | ||
serial.c | ||
setup.c | ||
time.c | ||
uart_base.c |