Files
linux/drivers
Wang Xiayang 77aedeeaf9 can: sja1000: force the string buffer NULL-terminated
[ Upstream commit cd28aa2e05 ]

strncpy() does not ensure NULL-termination when the input string size
equals to the destination buffer size IFNAMSIZ. The output string
'name' is passed to dev_info which relies on 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>
2023-05-15 14:20:40 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-15 13:57:04 +09:00
2023-05-15 10:39:04 +09:00
2023-05-15 12:46:28 +09:00
2017-09-09 17:39:41 +02:00
2018-05-25 17:06:35 +02:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 09:51:46 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 14:18:11 +09:00
2023-05-15 13:00:07 +09:00