forked from pool/xorg-x11-server
Stefan Dirsch
12d6c7b942
Xorg segfault in virtualbox guest (bnc#799480) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xorg-x11-server?expand=0&rev=431
22 lines
729 B
Diff
22 lines
729 B
Diff
Index: xorg-server-1.13.2/glx/glxdri.c
|
|
===================================================================
|
|
--- xorg-server-1.13.2/glx/glxdri.c
|
|
+++ xorg-server-1.13.2/glx/glxdri.c
|
|
@@ -971,13 +971,15 @@ __glXDRIscreenProbe(ScreenPtr pScreen)
|
|
size_t buffer_size;
|
|
ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
|
|
|
|
+ framebuffer.base = NULL;
|
|
+
|
|
if (!xf86LoaderCheckSymbol("DRIQueryDirectRenderingCapable") ||
|
|
!DRIQueryDirectRenderingCapable(pScreen, &isCapable) || !isCapable) {
|
|
LogMessage(X_INFO,
|
|
"AIGLX: Screen %d is not DRI capable\n", pScreen->myNum);
|
|
return NULL;
|
|
}
|
|
-
|
|
+
|
|
screen = calloc(1, sizeof *screen);
|
|
if (screen == NULL)
|
|
return NULL;
|