egl: check for NULL value like eglGetSyncAttribKHR does
authorTapani Pälli <tapani.palli@intel.com>
Mon, 10 Jun 2019 10:06:05 +0000 (13:06 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 19 Sep 2019 06:39:33 +0000 (06:39 +0000)
commit99cbec0a5f463fef4d9c61f34482d9eb00293704
treeaa56f1607bf8f983aebef7b509a0207590364d06
parenta16975e615e6a0ce91a4d2cb936cdaa46e8cfbe8
egl: check for NULL value like eglGetSyncAttribKHR does

Commit d1e1563bb63 added a NULL check for eglGetSyncAttribKHR
but eglGetSyncAttrib does not do this. Patch adds same check to
happen with eglGetSyncAttrib.

Fixes crashes in (when exposing EGL 1.5):
   dEQP-EGL.functional.fence_sync.invalid.get_invalid_value

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Cc: mesa-stable@lists.freedesktop.org
src/egl/main/eglapi.c