]> git.proxmox.com Git - mirror_qemu.git/commit
ui/clipboard: fix use-after-free regression
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 14 Feb 2022 11:59:17 +0000 (15:59 +0400)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 10:29:34 +0000 (11:29 +0100)
commit02a8ee2e1840d13db065f418969bcfcb404a94cb
tree564c955d6ea6fa136943b20fc5153b225440aa80
parentcb8962c146b2633a4b04562281de9b2703bba849
ui/clipboard: fix use-after-free regression

The same info may be used to update the clipboard, and may be freed
before being ref'ed again.

Fixes: 70a54b01693ed ("ui: avoid compiler warnings from unused clipboard info variable")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220214115917.1679568-1-marcandre.lureau@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/clipboard.c