Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/qlogic/qed
Wang Xiayang 3690c8c9a8 net/ethernet/qlogic/qed: force the string buffer NULL-terminated
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>
2019-08-02 17:57:18 -07:00
..
2017-05-21 12:56:53 -04:00
2018-06-05 10:48:09 -04:00
2017-01-01 21:02:14 -05:00
2017-05-21 12:56:53 -04:00
2019-01-28 11:13:34 -08:00
2017-10-19 12:46:43 +01:00
2019-02-06 16:53:32 -08:00
2018-01-02 13:59:16 -05:00
2019-01-28 11:13:34 -08:00
2019-05-26 13:04:12 -07:00