mirror of https://gitee.com/openkylin/qemu.git
vnc: fix segfault
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAABAgAGBQJWVrbHAAoJEEy22O7T6HE4+1MP+wa8V1gEG5HzcAd8DWJAzFGe vH0zyRCbAMKBCdgXeeaNHNkvuofVzXhPV5i4ShBjb6ZbY86mAmAWHKzs1/VrDlvy 1yx09KdHnShXFdQs6J1pVbKOsYJtRyreo8mjEn3yT2WrCtXpYD5ce1ZI22+PKPft XarSDpttvuisExJW4yZhD2TeHhCKSNhotqbWZ98vDx1PJ9QDaDB37zV/0JhH6zMh tJtpG44mM1hH/zvBDS0CQZBpiOt0x0jH4QOs5iVrxdtUnMQMxvOCNR8b+wcNVd1Y clSJ88n3eSiqYETTo4jYxtEakU4+u87Y1047foDUzy/3wJn8QjRGsbGynryVyeyg TmhGBiYhn+7y6a8xZHRFUfwiwWUO6IyTdT9CqB68uQ3UXJNOEQI51ig8QYS/44Lm RrI/Vq04eKVnD9OM7e0bj9gURc/tktFoBFeFqtr9aAjxCca3US30xmwLwkC9AhwC h+vYEFDL9qpNjJMwqCRq5erjxklYua847FA9UsIarmA0Z/m8pVl8saccIEQ7U1TL bdZOThgG1kcx/Jz0SOk+6FadKKkMhBasOgpoh1b+aeD+4wGddfvpwOy7rh8u+Z3n tqGIkChAlzQiUvirunsTGPs0J52ZQbH7tcMVdUl+8Ql2hBVZ6ldrwbvlK5pO18Gh Z1d8adsa4vbZuKKryp6k =SWk1 -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/pull-vnc-20151126-1' into staging vnc: fix segfault # gpg: Signature made Thu 26 Nov 2015 07:37:43 GMT using RSA key ID D3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" * remotes/kraxel/tags/pull-vnc-20151126-1: vnc: fix segfault Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
fe4cf57da7
5
ui/vnc.c
5
ui/vnc.c
|
@ -931,6 +931,11 @@ static void vnc_dpy_copy(DisplayChangeListener *dcl,
|
|||
int i, x, y, pitch, inc, w_lim, s;
|
||||
int cmp_bytes;
|
||||
|
||||
if (!vd->server) {
|
||||
/* no client connected */
|
||||
return;
|
||||
}
|
||||
|
||||
vnc_refresh_server_surface(vd);
|
||||
QTAILQ_FOREACH_SAFE(vs, &vd->clients, next, vn) {
|
||||
if (vnc_has_feature(vs, VNC_FEATURE_COPYRECT)) {
|
||||
|
|
Loading…
Reference in New Issue