Re: [dpdk-dev] [PATCH] net/af_packet: prefer snprintf against strncpy

2017-05-05 Thread Thomas Monjalon
04/05/2017 13:16, Ferruh Yigit: > strncpy may left destination buffer not NULL terminated, switched using > snprintf to be sure destination buffer is NULL terminated. > > Coverity issue: 1407495 > Coverity issue: 1407498 > Fixes: cc68ac4847bc ("net/af_packet: support MTU change") > Fixes: 21825959

[dpdk-dev] [PATCH] net/af_packet: prefer snprintf against strncpy

2017-05-04 Thread Ferruh Yigit
strncpy may left destination buffer not NULL terminated, switched using snprintf to be sure destination buffer is NULL terminated. Coverity issue: 1407495 Coverity issue: 1407498 Fixes: cc68ac4847bc ("net/af_packet: support MTU change") Fixes: 218259590ea4 ("net/af_packet: support promiscuous") S