summaryrefslogtreecommitdiffstats
path: root/CleanSpec.mk
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-08-08 15:55:36 +0100
committerEmil Velikov <[email protected]>2017-08-10 19:41:51 +0100
commit26fbb9eacddb1b809739cb12477bde13501d6d5a (patch)
tree3db8cd91d637ba2a75bdc60a7f237d8aa7fc8dc2 /CleanSpec.mk
parenta51be4f9a6561b5a97513ddc50f235c8126d3cf2 (diff)
egl: avoid eglCreatePlatform*Surface{EXT,} crash with invalid dpy
If we have an invalid display fed into the functions, the display lookup will return NULL. Thus as we attempt to get the platform type, we'll deref. it leading to a crash. Keep in mind that this will not happen if Mesa is built without X11 or when the legacy eglCreate*Surface codepaths are used. A similar check was added with earlier commit 5e97b8f5ce9 ("egl: Fix crashes in eglCreate*Surface), although it was only applicable when the surfaceless platform is built. Cc: [email protected] Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'CleanSpec.mk')
0 files changed, 0 insertions, 0 deletions