drivers/net: fix possible overflow using strlcat
authorChaitanya Babu Talluri <tallurix.chaitanya.babu@intel.com>
Fri, 22 Mar 2019 07:51:42 +0000 (07:51 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Mar 2019 10:32:53 +0000 (11:32 +0100)
commitfaf8c3095ac649f3d893ee846e2aa7cf1b4ccf4d
tree7b66928167236797dc293c32c37984633dd49f74
parent88245e7e215272203355f4a671526d193db7a595
drivers/net: fix possible overflow using strlcat

strcat does not check the destination length and there might be
chances of string overflow so instead of strcat, strlcat is used.

Fixes: 540a211084a7 ("bnx2x: driver core")
Fixes: e163c18a15b0 ("net/i40e: update ptype and pctype info")
Cc: stable@dpdk.org
Signed-off-by: Chaitanya Babu Talluri <tallurix.chaitanya.babu@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Shahed Shaikh <shshaikh@marvell.com>
drivers/net/bnx2x/bnx2x.c
drivers/net/i40e/i40e_ethdev.c