vnc: Fix fatal crash with vnc reverse mode
PATCH 1/1 vnc: Fix fatal crash with vnc reverse mode
Reverse mode is unusable:
qemu -vnc localhost:5500,reverse
crashes in vnc_refresh_server_surface because some pointers are NULL.
Fix this by calling vnc_dpy_resize (which initializes these pointers) before calling vnc_refresh.
--- ui/vnc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
ui/vnc.c +1 -0
@@ -2349,6 +2349,7 @@ static void vnc_init_timer(VncDisplay *vd) vd->timer_interval =VNC_REFRESH_INTERVAL_BASE ;if (vd->timer ==NULL && !QTAILQ_EMPTY (&vd->clients)) { vd->timer =qemu_new_timer (rt_clock, vnc_refresh, vd); +vnc_dpy_resize (vd->ds);vnc_refresh (vd); } }
Signature · 1 line
1.7.2.3
Quoted 4 lines · Stefan Weil
Reverse mode is unusable:
qemu -vnc localhost:5500,reverse
Quoted 8 lines
crashes in
vnc_refresh_server_surfacebecause some pointers are NULL.Fix this by calling
vnc_dpy_resize(which initializes these pointers) before callingvnc_refresh.Cc Anthony Liguori<[email protected]>Signed-off-by Stefan Weil<[email protected]>
Nice catch!
Regards,
Anthony Liguori
Quoted 17 lines
--- ui/vnc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)ui/vnc.c +1
-0@@ -2349,6 +2349,7 @@ static void vnc_init_timer(VncDisplay *vd) vd->timer_interval =VNC_REFRESH_INTERVAL_BASE ;if (vd->timer ==NULL && !QTAILQ_EMPTY (&vd->clients)) { vd->timer =qemu_new_timer (rt_clock, vnc_refresh, vd); +vnc_dpy_resize (vd->ds);vnc_refresh (vd); } }
Am 16.02.2011 21:16, schrieb Anthony Liguori:
Quoted 10 lines · Stefan Weil
Quoted 9 lines
Reverse mode is unusable:
qemu -vnc localhost:5500,reverse
crashes in
vnc_refresh_server_surfacebecause some pointers are NULL.Fix this by calling
vnc_dpy_resize(which initializes these pointers) before callingvnc_refresh.
Quoted 8 lines
Quoted 2 lines
Cc Anthony Liguori<[email protected]>Signed-off-by Stefan Weil<[email protected]>Nice catch!
Regards,
Anthony Liguori
What now? Will the patch be committed, is there a different fix for this bug, or are you planning to remove vnc because it is unmaintained?
Stefan
Quoted 16 lines · Stefan Weil
Am 16.02.2011 21:16, schrieb Anthony Liguori:
Quoted 15 lines · Stefan Weil
Quoted 11 lines
Reverse mode is unusable:
qemu -vnc localhost:5500,reverse
crashes in
vnc_refresh_server_surfacebecause some pointers are NULL.Fix this by calling
vnc_dpy_resize(which initializes these pointers) before callingvnc_refresh.Cc Anthony Liguori<[email protected]>Signed-off-by Stefan Weil<[email protected]>Nice catch!
Quoted 7 lines
Quoted 3 lines
Regards,
Anthony Liguori
What now? Will the patch be committed, is there a different fix for this bug, or are you planning to remove vnc because it is unmaintained?
Cute.
Regards,
Anthony Liguori
Quoted 3 lines
Stefan
Anthony Liguori
AppliedQuoted 4 lines · Stefan Weil
Reverse mode is unusable:
qemu -vnc localhost:5500,reverse
Quoted 8 lines
crashes in
vnc_refresh_server_surfacebecause some pointers are NULL.Fix this by calling
vnc_dpy_resize(which initializes these pointers) before callingvnc_refresh.Cc Anthony Liguori<[email protected]>Signed-off-by Stefan Weil<[email protected]>
Applied. Thanks.
Regards,
Anthony Liguori
Quoted 17 lines
--- ui/vnc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)ui/vnc.c +1
-0@@ -2349,6 +2349,7 @@ static void vnc_init_timer(VncDisplay *vd) vd->timer_interval =VNC_REFRESH_INTERVAL_BASE ;if (vd->timer ==NULL && !QTAILQ_EMPTY (&vd->clients)) { vd->timer =qemu_new_timer (rt_clock, vnc_refresh, vd); +vnc_dpy_resize (vd->ds);vnc_refresh (vd); } }