Skip to content

misc set of fixes for warnings under GCC 9

Daniel P. Berrangé qemu-devel 1 version Applied

Status from this message: Applied to my trivial-patches branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest5 patches 9 repliesApplied

Changes in v2 from the cover letter

- Dropped patches mistakenly included due to not correctly rebasing
- Dropped s390x patches already merged
- Dropped usb-mtp patches which need much more work to be correctly handling untrustworthy guest data.

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5linux-user: avoid string truncation warnings in uname field copyinglinux-user/uname.c+1 -11 reply
2/5linux-user: avoid string truncation warnings in elf field copyinglinux-user/elfload.c+4 -61 reply
3/5sockets: avoid string truncation warnings when copying UNIX pathutil/qemu-sockets.c+8 -43 replies
4/5hw/usb: avoid format truncation warning when formatting port namehw/usb/hcd-xhci.c+2 -01 reply
5/5qxl: avoid unaligned pointer reads/writeshw/display/qxl.c+24 -313 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] misc set of fixes for warnings under GCC 9

This series addresses all the warnings I see when building on Fedora 30 x86_64 with GCC 9 (gcc-9.0.1-0.10.fc30.x86_64).

Changed in v2:

- Dropped patches mistakenly included due to not correctly rebasing
- Dropped s390x patches already merged
- Dropped usb-mtp patches which need much more work to be correctly handling untrustworthy guest data.

Daniel P. Berrangé (5):
linux-user: avoid string truncation warnings in uname field copying
linux-user: avoid string truncation warnings in elf field copying
sockets: avoid string truncation warnings when copying UNIX path hw/usb: avoid format truncation warning when formatting port name
qxl: avoid unaligned pointer reads/writes

 hw/display/qxl.c     | 55 +++++++++++++++++++-------------------------
 hw/usb/hcd-xhci.c    |  2 ++
 linux-user/elfload.c | 10 ++++----
 linux-user/uname.c   |  2 +-
 util/qemu-sockets.c  | 12 ++++++----
 5 files changed, 39 insertions(+), 42 deletions(-)
Signature · 1 line
2.20.1