From: Anthony Liguori <aliguori@linux.vnet.ibm.com>
To: Stefan Weil <weil@mail.berlios.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] vnc: Fix fatal crash with vnc reverse mode
Date: Wed, 16 Feb 2011 14:16:28 -0600 [thread overview]
Message-ID: <4D5C309C.8010701@linux.vnet.ibm.com> (raw)
In-Reply-To: <1297885680-17860-1-git-send-email-weil@mail.berlios.de>
On 02/16/2011 01:48 PM, Stefan Weil wrote:
> 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.
>
> Cc: Anthony Liguori<aliguori@us.ibm.com>
> Signed-off-by: Stefan Weil<weil@mail.berlios.de>
>
Nice catch!
Regards,
Anthony Liguori
> ---
> ui/vnc.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/ui/vnc.c b/ui/vnc.c
> index da83adf..096b5f3 100644
> --- a/ui/vnc.c
> +++ b/ui/vnc.c
> @@ -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);
> }
> }
>
next prev parent reply other threads:[~2011-02-16 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-16 19:48 [Qemu-devel] [PATCH] vnc: Fix fatal crash with vnc reverse mode Stefan Weil
2011-02-16 20:16 ` Anthony Liguori [this message]
2011-02-23 21:57 ` [Qemu-devel] " Stefan Weil
2011-02-23 23:24 ` Anthony Liguori
2011-02-23 23:23 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D5C309C.8010701@linux.vnet.ibm.com \
--to=aliguori@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=weil@mail.berlios.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).