[PATCH 00/17] drivers: replace strncpy with strlcpy
Stephen Hemminger
stephen at networkplumber.org
Tue Jun 23 19:33:09 CEST 2026
On Tue, 23 Jun 2026 17:51:30 +0100
Bruce Richardson <bruce.richardson at intel.com> wrote:
> Many uses of strncpy in DPDK drivers can be directly replaced by
> a call to strlcpy instead, which is safer in that it always null-
> terminates the string. This AI assisted patchset makes those
> simple replacements, adjusting lengths as appropriate.
>
> After this set, there are still a number of drivers with strncpy calls
> in them, but those are not simple strncpy->strlcpy replacements, so
> left for later rework.
Maybe a coccinelle script?
More information about the dev
mailing list