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

2017-10-25 Thread Thomas Monjalon
25/10/2017 12:07, 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@

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

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