Files
i2som-imx-linux/drivers
Wang Xiayang 77a6e51271 net/ethernet/qlogic/qed: force the string buffer NULL-terminated
[ Upstream commit 3690c8c9a8 ]

strncpy() does not ensure NULL-termination when the input string
size equals to the destination buffer size 30.
The output string is passed to qed_int_deassertion_aeu_bit()
which calls DP_INFO() and relies NULL-termination.

Use strlcpy instead. The other conditional branch above strncpy()
needs no fix as snprintf() ensures NULL-termination.

This issue is identified by a Coccinelle script.

Signed-off-by: Wang Xiayang <xywang.sjtu@sjtu.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-08-29 08:26:40 +02:00
..
2019-08-25 10:50:17 +02:00
2019-05-14 19:18:42 +02:00
2019-08-16 10:13:47 +02:00
2019-07-31 07:28:24 +02:00
2019-05-31 06:47:21 -07:00