[PATCH 12/17] net/mlx5: replace strncpy with strlcpy

Dariusz Sosnowski dsosnowski at nvidia.com
Tue Aug 25 14:18:23 CEST 2026


On Tue, Jun 23, 2026 at 05:51:42PM +0100, Bruce Richardson wrote:
> Replace strncpy() with safer strlcpy() which always null-terminates.
> 
> Fixes: ca1418ce3910 ("common/mlx5: share device context object")
> Fixes: 9e58a50c059f ("net/mlx5: fix interface name parameter definition")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>

Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>


More information about the dev mailing list