Files
linux/drivers
Wang Xiayang 49a4fda42e can: peak_usb: force the string buffer NULL-terminated
[ Upstream commit e787f19373 ]

strncpy() does not ensure NULL-termination when the input string size
equals to the destination buffer size IFNAMSIZ. The output string is
passed to dev_info() which relies on the NULL-termination.

Use strlcpy() instead.

This issue is identified by a Coccinelle script.

Signed-off-by: Wang Xiayang <xywang.sjtu@sjtu.edu.cn>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-09-06 10:19:33 +02:00
..
2019-07-10 09:55:44 +02:00
2018-12-21 14:11:37 +01:00
2019-05-14 19:19:34 +02:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2018-10-03 17:01:42 -07:00
2019-08-25 10:51:42 +02:00
2019-05-31 06:48:15 -07:00