Skip to content

lib: remove use of strncpy

Bruce Richardson dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 1 replyIn review
  2. v11 patch 1 replyApplied

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ethdev: remove use of strncpylib/ethdev/ethdev_driver.c+6 -10 replies
2/3eventdev: improve bounds checks for names in adapter createlib/eventdev/rte_event_eth_tx_adapter.c+2 -20 replies
3/3vhost: remove use of strncpylib/vhost/socket.c lib/vhost/vduse.c lib/vhost/vhost.c +1 more+6 -140 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAndrew RybchenkoChengwen Feng
1/3R-b R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] lib: remove use of strncpy

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(-)
Signature · 1 line
2.53.0