[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
- [PATCH 0/2] gcc 9.2 strncpy(3) warnings fixes,
Stefan Hajnoczi <=
- [PATCH 1/2] migration: avoid suspicious strncpy() use, Stefan Hajnoczi, 2020/03/16
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Juan Quintela, 2020/03/16
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Philippe Mathieu-Daudé, 2020/03/16
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Eric Blake, 2020/03/16
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Stefan Hajnoczi, 2020/03/17
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Philippe Mathieu-Daudé, 2020/03/17
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Juan Quintela, 2020/03/17
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Stefan Hajnoczi, 2020/03/17
- Re: [PATCH 1/2] migration: avoid suspicious strncpy() use, Juan Quintela, 2020/03/17
[PATCH 2/2] hw/rdma: avoid suspicious strncpy() use, Stefan Hajnoczi, 2020/03/16