virtio-gpu: check early scanout id
commitfe89fdebcaab696d525f2905b33d7b303111eade
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 19 May 2016 10:25:55 +0000 (19 12:25 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 23 May 2016 11:30:03 +0000 (23 13:30 +0200)
tree62f107c0c9a0ce598ad864275e5c1dfcbc7f7b0e
parente081c24d30c1e7b29eb4450aa16d6a0da5782797
virtio-gpu: check early scanout id

Before accessing the g->scanout array, in order to avoid potential
out-of-bounds access.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 1463653560-26958-2-git-send-email-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/virtio-gpu.c