All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] ui/vnc: fix some endian problems
@ 2025-05-14 11:19 Daniel P. Berrangé
  2025-05-14 11:19 ` [PATCH v2 1/3] ui/vnc.c: replace big endian flag with byte order value Daniel P. Berrangé
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Daniel P. Berrangé @ 2025-05-14 11:19 UTC (permalink / raw)
  To: qemu-devel; +Cc: Marc-André Lureau, Daniel P. Berrangé

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(-)

-- 
2.49.0



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

end of thread, other threads:[~2025-05-30 10:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14 11:19 [PATCH v2 0/3] ui/vnc: fix some endian problems Daniel P. Berrangé
2025-05-14 11:19 ` [PATCH v2 1/3] ui/vnc.c: replace big endian flag with byte order value Daniel P. Berrangé
2025-05-14 12:18   ` BALATON Zoltan
2025-05-14 14:32   ` Philippe Mathieu-Daudé
2025-05-14 11:19 ` [PATCH v2 2/3] ui/vnc: take account of client byte order in pixman format Daniel P. Berrangé
2025-05-14 11:19 ` [PATCH v2 3/3] ui/vnc: fix tight palette pixel encoding for 8/16-bpp formats Daniel P. Berrangé
2025-05-24 10:32 ` [PATCH v2 0/3] ui/vnc: fix some endian problems Michael Tokarev
2025-05-30 10:13   ` Daniel P. Berrangé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.