Re: [dpdk-dev] [PATCH v3] examples/vhost_scsi: fix buffer not terminated

2017-10-17 Thread Yuanhan Liu
On Fri, Oct 13, 2017 at 09:12:33AM +0200, Maxime Coquelin wrote: > > > On 10/12/2017 01:34 PM, Jacek Piasecki wrote: > >Use snprintf instead strncpy to get safe null string termination. > >There was possible to get not terminated string after strncpy operation. > > > >Coverity issue: 158631 > >Fi

Re: [dpdk-dev] [PATCH v3] examples/vhost_scsi: fix buffer not terminated

2017-10-13 Thread Maxime Coquelin
On 10/12/2017 01:34 PM, Jacek Piasecki wrote: Use snprintf instead strncpy to get safe null string termination. There was possible to get not terminated string after strncpy operation. Coverity issue: 158631 Fixes: db75c7af19bb ("examples/vhost_scsi: introduce a new sample app") Cc: changpeng.

[dpdk-dev] [PATCH v3] examples/vhost_scsi: fix buffer not terminated

2017-10-12 Thread Jacek Piasecki
Use snprintf instead strncpy to get safe null string termination. There was possible to get not terminated string after strncpy operation. Coverity issue: 158631 Fixes: db75c7af19bb ("examples/vhost_scsi: introduce a new sample app") Cc: changpeng@intel.com Cc: sta...@dpdk.org Signed-off-by: