mesa/src/egl
Frank Binns 21b2c6fd5e egl: don't allow eglGetConfigs to set num_configs param to a negative value
When a buffer is provided to eglGetConfigs it's supposed to set the value
of the num_config parameter to the total number of configs that have been
copied into this buffer. For some reason the EGL spec doesn't consider it
to be an error to pass this function a buffer while specifying its size to
be less than 0. Given this, one would expect this combination to result in
the num_config parameter being set to 0 but this wasn't the case. This was
due to the buffer size being copied straight into num_configs without being
clamped to 0.

This was causing the following dEQP EGL test to fail:
dEQP-EGL.functional.query_config.get_configs.get_configs_bounds

Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
2015-08-13 17:36:06 +01:00
..
docs egl: Mark EGL_MESA_screen_surface as obsolete. 2010-08-31 15:25:22 +08:00
drivers egl/x11: don't abort when creating a DRI2 drawable fails 2015-08-13 17:36:06 +01:00
main egl: don't allow eglGetConfigs to set num_configs param to a negative value 2015-08-13 17:36:06 +01:00
wayland egl: remove support for GCC older than 4.1.0 2014-12-17 08:37:17 +11:00
Android.mk egl: android: remove DRM_GRALLOC_TOP hack 2015-07-22 16:35:27 +01:00
Makefile.am egl/dri2: Fix include path of u_atomic.h introduced e7e29189 2015-08-07 14:31:25 -05:00
Makefile.sources automake: rework the EGL build 2015-07-22 16:35:27 +01:00
SConscript egl/dri2: Fix include path of u_atomic.h introduced e7e29189 2015-08-07 14:31:25 -05:00