nuttx-apps/system/vncviewer
Old-Ding 5226be524c system/vncviewer: Drain truncated desktop names
The RFB ServerInit message carries the desktop name as a length-prefixed field. vncviewer caps the copied name to fit conn->name, but it must still consume the remaining bytes from the socket when the advertised name is longer than the local buffer.

Drain the unused suffix so the next RFB message is read from the correct boundary. Reuse the same discard helper for other skipped RFB payloads.

Signed-off-by: Old-Ding <ai.neo.ae86@gmail.com>
2026-07-09 09:28:13 +08:00
..
CMakeLists.txt examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
Kconfig examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
lcd_render.c examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
lcd_render.h examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
Make.defs examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
Makefile examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
rfb_protocol.c system/vncviewer: Drain truncated desktop names 2026-07-09 09:28:13 +08:00
rfb_protocol.h examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00
vncviewer_main.c examples/vncviewer: add VNC viewer for LCD display 2026-04-24 14:58:49 +02:00