linux_dsm_epyc7002/drivers/net/ethernet/qlogic
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
..
netxen ethernet: remove redundant memset 2019-07-15 11:06:27 -07:00
qed net/ethernet/qlogic/qed: force the string buffer NULL-terminated 2019-08-02 17:57:18 -07:00
qede net: flow_offload: rename tc_cls_flower_offload to flow_cls_offload 2019-07-09 14:38:51 -07:00
qlcnic qlcnic: remove redundant assignment to variable err 2019-07-03 11:33:55 -07:00
qlge treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig qed: Fix build error without CONFIG_DEVLINK 2019-06-03 15:11:05 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla3xxx.c drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
qla3xxx.h