Skip to content

gcc 9.2 strncpy(3) warnings fixes

Stefan Hajnoczi qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 11 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2migration: avoid suspicious strncpy() usemigration/global_state.c+2 -28 replies
2/2hw/rdma: avoid suspicious strncpy() usehw/rdma/vmw/pvrdma_dev_ring.c+2 -23 replies

Reviews trailers per patch

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

PatchJuan Quintela
1/2R-b
2/2R-b

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

Read the v1 thread

Cover letter [PATCH 0/2] gcc 9.2 strncpy(3) warnings fixes

I hit two strncpy(3) compiler warnings with gcc 9.2 and sanitizers enabled recently. Use QEMU's pstrcpy() function instead - it always NUL-terminates and therefore eliminates the concerns behind this compiler warning.

Stefan Hajnoczi (2):
migration: avoid suspicious strncpy() use
hw/rdma: avoid suspicious strncpy() use

 hw/rdma/vmw/pvrdma_dev_ring.c | 4 ++--
 migration/global_state.c      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.24.1