summary refs log tree commit diff stats
path: root/results/scraper/launchpad-without-comments/1637447
blob: 3976bc45cbf179d4c2410516d327b8b0d83fc86b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
VNC/RFB: QEMU reports incorrect name (length)

If the name of a machine (as set with the -name argument) has a length longer than 1024, (RFB) VNC clients will not receive a correct RFB ServerInit message.

I suspect this is the problem:

https://github.com/qemu/qemu/blob/master/ui/vnc.c#L2463

The return value of snprintf is used as the value for the name-length field in the ServerInit message.
This is problematic for names that were truncated to 1024, as the length will now be bigger than the actual name.

I think a quick fix would be to simply report min(size,1024) to the client...