[PATCH v2 0/3] lib: remove use of strncpy
David Marchand
david.marchand at redhat.com
Tue Sep 22 18:09:06 CEST 2026
On Mon, 17 Aug 2026 at 15:44, Bruce Richardson
<bruce.richardson at intel.com> wrote:
>
> Taking a lead from the kernel, which has just finished a multi-year
> effort to remove use of strncpy[1], rework DPDK to remove use of the
> same function. This series removes all remaining uses of strncpy
> in lib directory.
>
> [1] https://www.phoronix.com/news/Linux-7.2-Drops-strncpy
>
> V2: resubmit for 26.11, applying the series-reviewed-by as individual
> per-patch tags.
>
> Bruce Richardson (3):
> ethdev: remove use of strncpy
> eventdev: improve bounds checks for names in adapter create
> vhost: remove use of strncpy
>
> lib/ethdev/ethdev_driver.c | 7 ++++++-
> lib/eventdev/rte_event_eth_tx_adapter.c | 4 ++--
> lib/vhost/socket.c | 4 +---
> lib/vhost/vduse.c | 2 +-
> lib/vhost/vhost.c | 12 +++---------
> lib/vhost/vhost.h | 2 +-
> 6 files changed, 14 insertions(+), 17 deletions(-)
Series applied.
Thanks for the cleanup Bruce.
--
David Marchand
More information about the dev
mailing list