Activity log for bug #1637447

Date Who What changed Old value New value Message
2016-10-28 09:30:31 Jakob van Kruijssen bug added bug
2016-10-28 09:57:48 Jakob van Kruijssen description 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... 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/v2.7.0-rc5/ui/vnc.c#L2459 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...
2017-01-11 06:29:52 Thomas Huth qemu: status New Fix Committed
2017-04-24 07:43:04 Thomas Huth qemu: status Fix Committed Fix Released