Re: [dpdk-dev] [PATCH v2] net/af_xdp: use strlcpy instead of strncpy

2020-10-09 Thread Ferruh Yigit
On 10/7/2020 11:29 AM, Bruce Richardson wrote: On Wed, Oct 07, 2020 at 09:20:50AM +, Ciara Loftus wrote: strncpy may leave the destination buffer not NULL terminated so use strlcpy instead. Coverity issue: 362975 Fixes: 339b88c6a91f ("net/af_xdp: support multi-queue") Signed-off-by: Ciara L

Re: [dpdk-dev] [PATCH v2] net/af_xdp: use strlcpy instead of strncpy

2020-10-07 Thread Bruce Richardson
On Wed, Oct 07, 2020 at 09:20:50AM +, Ciara Loftus wrote: > strncpy may leave the destination buffer not NULL terminated so use > strlcpy instead. > > Coverity issue: 362975 > Fixes: 339b88c6a91f ("net/af_xdp: support multi-queue") > Signed-off-by: Ciara Loftus > --- Acked-by: Bruce Richards

[dpdk-dev] [PATCH v2] net/af_xdp: use strlcpy instead of strncpy

2020-10-07 Thread Ciara Loftus
strncpy may leave the destination buffer not NULL terminated so use strlcpy instead. Coverity issue: 362975 Fixes: 339b88c6a91f ("net/af_xdp: support multi-queue") Signed-off-by: Ciara Loftus --- v2: * use strlcpy instead of snprintf drivers/net/af_xdp/rte_eth_af_xdp.c | 2 +- 1 file changed, 1