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
Kconfig
lcd_render.c
lcd_render.h
Make.defs
Makefile
rfb_protocol.c system/vncviewer: Drain truncated desktop names 2026-07-09 09:28:13 +08:00
rfb_protocol.h
vncviewer_main.c