Re: [dpdk-dev] [PATCH v4] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Wiles, Keith
> On Feb 17, 2017, at 10:48 AM, Yigit, Ferruh wrote: > > On 2/17/2017 4:34 PM, Wiles, Keith wrote: >> >>> On Feb 17, 2017, at 10:21 AM, Yigit, Ferruh wrote: >>> >>> On 2/17/2017 3:43 PM, Keith Wiles wrote: Calling strncpy with a maximum size argument of 16 bytes on destination array

Re: [dpdk-dev] [PATCH v4] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Ferruh Yigit
On 2/17/2017 4:34 PM, Wiles, Keith wrote: > >> On Feb 17, 2017, at 10:21 AM, Yigit, Ferruh wrote: >> >> On 2/17/2017 3:43 PM, Keith Wiles wrote: >>> Calling strncpy with a maximum size argument of 16 bytes on destination >>> array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the >>> dest

Re: [dpdk-dev] [PATCH v4] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Wiles, Keith
> On Feb 17, 2017, at 10:21 AM, Yigit, Ferruh wrote: > > On 2/17/2017 3:43 PM, Keith Wiles wrote: >> Calling strncpy with a maximum size argument of 16 bytes on destination >> array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the >> destination string unterminated. >> >> Signed-off-by

Re: [dpdk-dev] [PATCH v4] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Ferruh Yigit
On 2/17/2017 3:43 PM, Keith Wiles wrote: > Calling strncpy with a maximum size argument of 16 bytes on destination > array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the > destination string unterminated. > > Signed-off-by: Keith Wiles net/tap: fix possibly unterminated string

[dpdk-dev] [PATCH v4] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Keith Wiles
Calling strncpy with a maximum size argument of 16 bytes on destination array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the destination string unterminated. Signed-off-by: Keith Wiles --- v4 - Forgot to finish rebase v3 - convert strncpy to use snprintf instead. v2 - fix the checkpatc