mbox series

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

Message ID 20200316160702.478964-1-stefanha@redhat.com
Headers show
Series gcc 9.2 strncpy(3) warnings fixes | expand

Message

Stefan Hajnoczi March 16, 2020, 4:07 p.m. UTC
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(-)