qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Stefan Hajnoczi
Subject: [PATCH 0/2] gcc 9.2 strncpy(3) warnings fixes
Date: Mon, 16 Mar 2020 16:07:00 +0000

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(-)

-- 
2.24.1


reply via email to

[Prev in Thread] Current Thread [Next in Thread]