gcc 9.2 strncpy(3) warnings fixes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 11 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | migration: avoid suspicious strncpy() usemigration/ | +2 | 8 replies | |
| 2/2 | hw/rdma: avoid suspicious strncpy() usehw/ | +2 | 3 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Juan Quintela |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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