]> git.proxmox.com Git - mirror_qemu.git/commit - ui/console.c
console: add same surface replace pre-condition
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Thu, 6 Apr 2017 12:05:11 +0000 (14:05 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 24 Apr 2017 08:12:28 +0000 (10:12 +0200)
commit6905b93447a42e606dfd126b90f75f4cd3c6fe94
treedf73263fb239fbb502b0ae7730da3b72abc751df
parent32c7e0ab755745e961f1772e95cac381cc68769d
console: add same surface replace pre-condition

Catch an invalid state early, before a potential use-after-free. This is
mainly useful for documentation purposes.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-id: 20170406120513.638-2-marcandre.lureau@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/console.c