mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-03-31 05:20:36 +02:00
Merge branch 'glx-1817' into 'main'
glx: avoid null dereference in validGlxFBConfigForWindow() See merge request xorg/xserver!2160
This commit is contained in:
commit
ef887624fd
1 changed files with 2 additions and 1 deletions
|
|
@ -123,7 +123,8 @@ validGlxFBConfigForWindow(ClientPtr client, __GLXconfig * config,
|
|||
}
|
||||
|
||||
/* FIXME: What exactly should we check here... */
|
||||
if (pVisual->class != glxConvertToXVisualType(config->visualType) ||
|
||||
if (pVisual == NULL ||
|
||||
pVisual->class != glxConvertToXVisualType(config->visualType) ||
|
||||
!(config->drawableType & GLX_WINDOW_BIT)) {
|
||||
client->errorValue = pDraw->id;
|
||||
*err = BadMatch;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue