[PATCH] net/intel: fix use of non-recommended string functions
Loftus, Ciara
ciara.loftus at intel.com
Wed Jun 24 11:51:11 CEST 2026
> Subject: [PATCH] net/intel: fix use of non-recommended string functions
>
> Replace use of the strncpy and strcpy functions with the safer strlcpy
> alternative, which both bounds-checks and guarantees null termination.
> In the process also replace instances of strcat with strlcat where
> appropriate.
>
> Fixes: 2d823ecd671c ("net/cpfl: support device initialization")
> Fixes: c4c59ae62793 ("net/cpfl: refactor flow parser")
> Fixes: c10881d3ee74 ("net/cpfl: support flow prog action")
> Fixes: 9481b0902efe ("net/ice: send driver version to firmware")
> Fixes: 7f7cbf80bdb7 ("net/ice: factorize firmware loading")
> Fixes: 549343c25db8 ("net/idpf: support device initialization")
> Fixes: 484f8e407a94 ("net/igb: support xstats by ID")
> Fixes: fca82a8accf9 ("net/ixgbe: support xstats by ID")
> Fixes: e163c18a15b0 ("net/i40e: update ptype and pctype info")
> Cc: stable at dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Ciara Loftus <ciara.loftus at intel.com>
> ---
> drivers/net/intel/cpfl/cpfl_ethdev.c | 2 +-
> drivers/net/intel/cpfl/cpfl_flow_parser.c | 16 +++++++---------
> drivers/net/intel/e1000/igb_ethdev.c | 5 +++--
> drivers/net/intel/i40e/i40e_ethdev.c | 3 +--
> drivers/net/intel/ice/ice_ethdev.c | 16 +++++++---------
> drivers/net/intel/idpf/idpf_ethdev.c | 2 +-
> drivers/net/intel/ixgbe/ixgbe_ethdev.c | 5 +++--
> 7 files changed, 23 insertions(+), 26 deletions(-)
>
More information about the dev
mailing list