Skip to content

ui/vnc: fix some endian problems

Daniel P. Berrangé qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesIn review
  2. v13 patches 7 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ui/vnc.c: replace big endian flag with byte order valueui/vnc-enc-tight.c ui/vnc-enc-zrle.c ui/vnc-jobs.c +2 more+7 -72 replies
2/3ui/vnc: take account of client byte order in pixman formatinclude/ui/qemu-pixman.h ui/qemu-pixman.c ui/vnc-enc-tight.c +1 more+13 -110 replies
3/3ui/vnc: fix tight palette pixel encoding for 8/16-bpp formatsui/vnc-enc-tight.c+8 -40 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéBALATON Zoltan
1/3R-b R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/3] ui/vnc: fix some endian problems

This fixes some edge cases in endian handling in the VNC server. These bugs are rarely going to be visible by default, since most servers will negotiate encoding formats / framebuffer formats that avoid hitting the problem scenarios.

In v2:

- Rename 'client_bo' to 'client_endian' for reviewer clarity
- Rename 'native' to 'native_endian' for code consistency

Daniel P. Berrangé (3):
ui/vnc.c: replace big endian flag with byte order value ui/vnc: take account of client byte order in pixman format ui/vnc: fix tight palette pixel encoding for 8/16-bpp formats

 include/ui/qemu-pixman.h |  4 ++--
 ui/qemu-pixman.c         | 15 ++++++++-------
 ui/vnc-enc-tight.c       | 16 ++++++++++------
 ui/vnc-enc-zrle.c        |  2 +-
 ui/vnc-jobs.c            |  2 +-
 ui/vnc.c                 |  9 +++++----
 ui/vnc.h                 |  2 +-
 7 files changed, 28 insertions(+), 22 deletions(-)
Signature · 1 line
2.49.0