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

2017-10-12 Thread Maxime Coquelin
On 10/12/2017 08:44 AM, 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 v2] examples/vhost_scsi: fix buffer not terminated

2017-10-11 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: