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

Thomas Monjalon thomas at monjalon.net
Wed Oct 25 12:18:58 CEST 2017


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.liu at intel.com
> Cc: stable at dpdk.org
> 
> Signed-off-by: Jacek Piasecki <jacekx.piasecki at intel.com>
> Acked-by: Maxime Coquelin <maxime.coquelin at redhat.com>
> ---
> v4: RTE_DIM instead ARRAY_SIZE
> v3: checkpatch fix
> v2: snprintf instead strncpy

Applied, thanks



More information about the stable mailing list