[dpdk-dev] [PATCH v3] app/procinfo: fix strncpy count issue

Bruce Richardson bruce.richardson at intel.com
Tue Feb 20 15:16:03 CET 2018


On Tue, Feb 20, 2018 at 01:52:22PM +0000, Radu Nicolau wrote:
> Replace strncpy with snprintf to avoid overwriting the last
> NULL character.
> 
> Fixes: 2deb6b5246d7 ("app/procinfo: add collectd format and host id")
> Coverity issue: 143252
> 
> Cc: stable at dpdk.org
> 
> Signed-off-by: Radu Nicolau <radu.nicolau at intel.com>
> ---
Acked-by: Bruce Richardson <bruce.richardson at intel.com>



More information about the dev mailing list