Skip to content
Snippets Groups Projects
Commit d1e1563b authored by Dongwon Kim's avatar Dongwon Kim Committed by Emil Velikov
Browse files

egl: move Null check to eglGetSyncAttribKHR to prevent Segfault


Null-check on "*value" is currently done in _eglGetSyncAttrib, which is
after eglGetSyncAttribKHR dereferences it.

Move the check a layer up (in the beginning of eglGetSyncAttribKHR) to
avoid segfaults.

Cc: "11.0 11.1" <mesa-stable@lists.freedesktop.org
Signed-off-by: default avatarDongwon Kim <dongwon.kim@intel.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
[Emil Velikov: tweak commit message, add stable tag]
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent b697400a
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment