Stefan Dirsch
2fb7449ee5
* NULL pointer dereference via dri2GetGlxDrawableFromXDrawableId() (CVE-2023-45913, bsc#1222040) - u_mesa-CVE-2023-45919.patch * buffer over-read in glXQueryServerString() (CVE-2023-45919, bsc#1222041) - u_mesa-CVE-2023-45922.patch * segmentation violation in __glXGetDrawableAttribute() (CVE-2023-45922, bsc#1222042) OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1335
14 lines
471 B
Diff
14 lines
471 B
Diff
src/glx/dri2_glx.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
--- a/src/glx/dri2_glx.c
|
|
+++ b/src/glx/dri2_glx.c
|
|
@@ -1399,7 +1399,7 @@ dri2GetGlxDrawableFromXDrawableId(Displa
|
|
struct dri2_display *pdp = (struct dri2_display *) d->dri2Display;
|
|
__GLXDRIdrawable *pdraw;
|
|
|
|
- if (__glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0)
|
|
+ if (pdp && __glxHashLookup(pdp->dri2Hash, id, (void *) &pdraw) == 0)
|
|
return pdraw;
|
|
|
|
return NULL;
|