qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] gcc 9.2 strncpy(3) warnings fixes
@ 2020-03-16 16:07 Stefan Hajnoczi
  2020-03-16 16:07 ` [PATCH 1/2] migration: avoid suspicious strncpy() use Stefan Hajnoczi
  2020-03-16 16:07 ` [PATCH 2/2] hw/rdma: " Stefan Hajnoczi
  0 siblings, 2 replies; 14+ messages in thread
From: Stefan Hajnoczi @ 2020-03-16 16:07 UTC (permalink / raw)
  To: qemu-devel
  Cc: Stefan Hajnoczi, Yuval Shaia, Dr. David Alan Gilbert,
	Juan Quintela

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


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2020-03-21 17:24 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-16 16:07 [PATCH 0/2] gcc 9.2 strncpy(3) warnings fixes Stefan Hajnoczi
2020-03-16 16:07 ` [PATCH 1/2] migration: avoid suspicious strncpy() use Stefan Hajnoczi
2020-03-16 17:25   ` Juan Quintela
2020-03-16 18:09   ` Philippe Mathieu-Daudé
2020-03-16 18:15     ` Eric Blake
2020-03-17  9:52       ` Stefan Hajnoczi
2020-03-17 10:12         ` Philippe Mathieu-Daudé
2020-03-17 10:35         ` Juan Quintela
2020-03-17 14:15           ` Stefan Hajnoczi
2020-03-17 14:18             ` Juan Quintela
2020-03-16 16:07 ` [PATCH 2/2] hw/rdma: " Stefan Hajnoczi
2020-03-16 17:28   ` Juan Quintela
2020-03-20 11:55   ` Yuval Shaia
2020-03-21 17:25     ` Marcel Apfelbaum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).