3d039dc5d8
CVE-2016-9603: cirrus: heap buffer overflow via vnc connection (bz #1432040) CVE-2017-7377: 9pfs: fix file descriptor leak (bz #1437872) CVE-2017-7980: cirrus: OOB r/w access issues in bitblt (bz #1444372) CVE-2017-8112: vmw_pvscsi: infinite loop in pvscsi_log2 (bz #1445622) CVE-2017-8309: audio: host memory lekage via capture buffer (bz #1446520) CVE-2017-8379: input: host memory lekage via keyboard events (bz #1446560) CVE-2017-8380: scsi: megasas: out-of-bounds read in megasas_mmio_write (bz #1446578) CVE-2017-9060: virtio-gpu: host memory leakage in Virtio GPU device (bz #1452598) CVE-2017-9310: net: infinite loop in e1000e NIC emulation (bz #1452623) CVE-2017-9330: usb: ohci: infinite loop due to incorrect return value (bz #1457699) CVE-2017-9374: usb: ehci host memory leakage during hotunplug (bz #1459137) CVE-2017-10806: usb-redirect: stack buffer overflow in debug logging (bz #1468497)
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From: Frediano Ziglio <fziglio@redhat.com>
|
|
Date: Mon, 20 Feb 2017 09:50:55 +0000
|
|
Subject: [PATCH] egl-helpers: Support newer MESA versions
|
|
|
|
According to
|
|
https://www.khronos.org/registry/EGL/extensions/MESA/EGL_MESA_platform_gbm.txt
|
|
if MESA_platform_gbm is supported display should be initialized
|
|
from a GBM handle using eglGetPlatformDisplayEXT.
|
|
|
|
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
|
|
Message-id: 20170220095055.4234-1-fziglio@redhat.com
|
|
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
|
|
(cherry picked from commit 0ea1523fb6703aa0dcd65e66b59e96fec028e60a)
|
|
---
|
|
ui/egl-helpers.c | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/ui/egl-helpers.c b/ui/egl-helpers.c
|
|
index 79cee0503a..d8d57c4bbe 100644
|
|
--- a/ui/egl-helpers.c
|
|
+++ b/ui/egl-helpers.c
|
|
@@ -203,7 +203,11 @@ int qemu_egl_init_dpy(EGLNativeDisplayType dpy, bool gles, bool debug)
|
|
}
|
|
|
|
egl_dbg("eglGetDisplay (dpy %p) ...\n", dpy);
|
|
+#ifdef EGL_MESA_platform_gbm
|
|
+ qemu_egl_display = eglGetPlatformDisplayEXT(EGL_PLATFORM_GBM_MESA, dpy, NULL);
|
|
+#else
|
|
qemu_egl_display = eglGetDisplay(dpy);
|
|
+#endif
|
|
if (qemu_egl_display == EGL_NO_DISPLAY) {
|
|
error_report("egl: eglGetDisplay failed");
|
|
return -1;
|