]> git.ipfire.org Git - thirdparty/qemu.git/commit
vnc: fix segfault
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 25 Nov 2015 07:04:05 +0000 (08:04 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 26 Nov 2015 07:32:11 +0000 (08:32 +0100)
commit7fe4a41c262e2529dc79f77f6fe63c5309fa2fd9
treef04edc0daf27fb601883b993c18d9b2beb13974d
parent4b6eda626fdb8bf90472c6868d502a2ac09abeeb
vnc: fix segfault

Commit "c7628bf vnc: only alloc server surface with clients connected"
missed one rarely used codepath (cirrus with guest drivers using 2d
accel) where we have to check for the server surface being present,
to avoid qemu crashing with a NULL pointer dereference.  Add the check.

Reported-by: Anthony PERARD <anthony.perard@citrix.com>
Tested-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c